LP 3 DeltaArduino

Change Firmata Arduino code

userHead yotsclee 2016-06-06 11:02:38 5227 Views7 Replies
Hi, I cannot get the Windows remote Arduino working with the Blink sample downloaded from the "Docs" section of LattePanda website. I look at the Windows developer web site and it says that we need to change "Serial" to "Serial1".

Many Arduino devices, such as the Leonardo and the Yun, use Serial1 (Rather than just Serial) for serial communications over pins 0 and 1. If you are using one of these devices, you will need to change the serial initialization procedure. You will want to remove the line Firmata.begin(57600); and replace it with the code below:

Serial1.begin( 57600 ); //or your baud rate here, it will be 115200 if using the Bluetooth Mate Silver or Gold
while( !Serial1 );
Firmata.begin( Serial1 );

https://developer.microsoft.com/en-us/w ... /win10/wra

Do we need to change the "Serial" as "Serial1"? If yes, I think it should be documented in the "Docs" section. Thanks!