Misfittech / nano_stepper

Stepper feedback controller
423 stars 179 forks source link

compile error 'Serial5' was not declared in this scope #31

Closed Hellfish78 closed 4 years ago

Hellfish78 commented 5 years ago

Hi, i'm trying to compile the 0.39 but get this errors:

sketch\commands.cpp: In function 'uint8_t kbhit_hw()':

commands.cpp:1521:9: error: 'Serial5' was not declared in this scope

return Serial5.available();

     ^

sketch\commands.cpp: In function 'uint8_t getChar_hw()':

commands.cpp:1526:9: error: 'Serial5' was not declared in this scope

return Serial5.read();

     ^

sketch\commands.cpp: In function 'uint8_t putch_hw(char)':

commands.cpp:1530:9: error: 'Serial5' was not declared in this scope

return Serial5.write((uint8_t)data);

     ^

exit status 1 sketch\nzs.cpp: In member function 'void NZS::begin()':

nzs.cpp:637:2: error: 'Serial5' was not declared in this scope

Serial5.begin(SERIAL_BAUD);

^

'Serial5' was not declared in this scope

tarchive commented 5 years ago

You are missing the Nano Zero board where the Serial5 definition is defined. Either it is not installed or you do not have it selected.

To install, follow the install guide here. http://misfittech.net/blog/arduino-package-install/

Once installed "Nano Zero (Native USB Port)" can now be selected from board menu and compilation error Serial5 will be resolved

coolio986 commented 4 years ago

@Hellfish78 has this been resolved?

coolio986 commented 4 years ago

Changes committed 98510ac

coolio986 commented 4 years ago

@trampas, can you close this issue?

DanTheHero commented 4 years ago

Please i need to solve this issue

coolio986 commented 4 years ago

This issue is solved. If you're still having an issue please fill out a bug report.