Arduino Dock 2, Serial.print() won't work. Complete novice, please help!
-
I'd really appreciate some help. I'm trying to use an arduino gyroscope for my omega project using the arduino dock 2, I set it all up right as far as I know but in this source code that uses Serial.print, there's nothing to be seen on the arduino serial output console. All lights are on and everything should be working. In my code, the stuff inside the "ifdef" namespaces is defined, it should work... If anyone knows what's wrong, please help.
-
@Uzair-Shafiq
You should install screen
opkg update
opkg install screen
Connect to Omega with ssh and run screen:
screen /dev/ttyS1 9600
Now you should see the output of those Serial.print on this Arduino IDE Serial Monitor like "screen".To kill this screen session, type
Ctrl-a
thenk
.See also: Onion Omega2 Documentation Communicating with Serial Devices
Using the screen CommandGood luck!