Pages: [1]   Go Down
Author Topic: [SOLVED] Serial1 was not declared when compiling YunSerialTerminal  (Read 663 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello i've got a problem when compiling  YunSerialTerminal. I'm using Arduino IDE 1.5.6-r2 and Arduino Yun

This is the error i've got:
Code:
Arduino: 1.5.6-r2 (Windows 8), Board: "Arduino Uno"

YunSerialTerminal.ino: In function 'void setup()':
YunSerialTerminal:7: error: 'Serial1' was not declared in this scope
YunSerialTerminal.ino: In function 'void loop()':
YunSerialTerminal:20: error: 'Serial1' was not declared in this scope
YunSerialTerminal:24: error: 'Serial1' was not declared in this scope
YunSerialTerminal:27: error: 'Serial1' was not declared in this scope
YunSerialTerminal:30: error: 'Serial1' was not declared in this scope
YunSerialTerminal:33: error: 'Serial1' was not declared in this scope
YunSerialTerminal:36: error: 'Serial1' was not declared in this scope
YunSerialTerminal:39: error: 'Serial1' was not declared in this scope
YunSerialTerminal:45: error: 'Serial1' was not declared in this scope

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

Thank You
« Last Edit: April 02, 2014, 07:30:19 am by saggafarsyad » Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Since this code only runs on the arduino Yun, you have to compile for the Yun.

Your compiler output shows you selected the "Arduino Uno" board.

Eberhard
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oops I forgot to change board to Arduino Yun  smiley-yell. Problem Solved  smiley
Logged

Pages: [1]   Go Up
Jump to: