SolidGeek / nRF24-Esk8-Remote

A remote used to control an electric skateboard
GNU General Public License v3.0
129 stars 60 forks source link

SERIALIO issue on receiver code #13

Open mcles011 opened 5 years ago

mcles011 commented 5 years ago

Arduino: 1.8.5 (Windows 10), Board: "Arduino Nano, ATmega328"

F:\Downloads\nRF24-Esk8-Remote-master (1)\nRF24-Esk8-Remote-master\receiver\receiver.ino: In function 'void setup()':

receiver:29: error: 'SERIALIO' was not declared in this scope

SERIALIO.begin(115200);

^

exit status 1 'SERIALIO' was not declared in this scope

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

michalhorvath commented 5 years ago

You can solve this issue by defining SERIALIO (solved by Deakbannok on esk8 forum). Change your code to:

#define SERIALIO Serial
void setup(){
    SetSerialPort(&SERIALIO);
    SERIALIO.begin(115200);

Or you can use development branch instead of master branch that doesn't have this issue.