Compiling errors gamepad

83 views
Skip to first unread message

Nick Vandevelde

unread,
Jun 16, 2022, 3:57:49 PM6/16/22
to Vorpal Robotics Forum
Hey everyone!
I have some errors compiling the gamepad firmware in arduino IDE (V 1.8.19).
I've included all the requested libraries, have no clue what to try...
This is the error I get.

In file included from C:\Users\nickv\Downloads\Vorpal-Hexapod-Gamepad\Vorpal-Hexapod-Gamepad.ino:18:0:
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h: In member function 'void LinkUART::init()':
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:29:5: error: 'Serial1' was not declared in this scope
     Serial1.begin(19200);
     ^~~~~~~
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:29:5: note: suggested alternative: 'Serial'
     Serial1.begin(19200);
     ^~~~~~~
     Serial
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h: In member function 'uint16_t LinkUART::getWord()':
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:40:11: error: 'Serial1' was not declared in this scope
       u = Serial1.read();
           ^~~~~~~
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:40:11: note: suggested alternative: 'Serial'
       u = Serial1.read();
           ^~~~~~~
           Serial
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:46:11: error: 'Serial1' was not declared in this scope
       v = Serial1.read();
           ^~~~~~~
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:46:11: note: suggested alternative: 'Serial'
       v = Serial1.read();
           ^~~~~~~
           Serial
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h: In member function 'uint8_t LinkUART::getByte()':
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:60:11: error: 'Serial1' was not declared in this scope
       u = Serial1.read();
           ^~~~~~~
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:60:11: note: suggested alternative: 'Serial'
       u = Serial1.read();
           ^~~~~~~
           Serial
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h: In member function 'int8_t LinkUART::send(uint8_t*, uint8_t)':
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:68:12: error: 'Serial1' was not declared in this scope
     return Serial1.write(data, len);
            ^~~~~~~
C:\Users\nickv\Documents\Arduino\libraries\Pixy/PixyUART.h:68:12: note: suggested alternative: 'Serial'
     return Serial1.write(data, len);
            ^~~~~~~
            Serial
exit status 1
Fout bij het compileren voor board Arduino Nano

vorpalrobotics

unread,
Sep 24, 2023, 2:01:19 PM9/24/23
to Vorpal Robotics Forum
I'm not sure what you're compiling, because the gamepad doesn't use the Pixy library at all.

The latest robot software also doesn't use pixy (it's commented out). It was an early experimental feature and I wasn't able to get it working well enough to pursue.

If you want the latest software, go to this public dropbox folder:


And navigate down to the hexapod software.

The libraries we compiled with are also stored in there.



Reply all
Reply to author
Forward
0 new messages