[SOLVED] Serial1 was not declared when compiling YunSerialTerminal

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:

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

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

Oops I forgot to change board to Arduino Yun :stuck_out_tongue_closed_eyes:. Problem Solved :slight_smile:

"error: 'Serial1' was not declared in this scope". I need to solve this problem .