Go Down

Topic: [SOLVED] Serial1 was not declared when compiling YunSerialTerminal (Read 736 times) previous topic - next topic

saggafarsyad

Apr 02, 2014, 06:18 am Last Edit: Apr 02, 2014, 02:30 pm by saggafarsyad Reason: 1
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: [Select]

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

wayoda

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

saggafarsyad

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

Go Up