necroware / gameport-adapter

GamePort adapter to connect old DB15 joysticks to USB port
GNU General Public License v3.0
274 stars 54 forks source link

Basic compile problems #39

Closed AndJ8894 closed 1 year ago

AndJ8894 commented 1 year ago

Arduino IDE 2.0.0 gives lots of compile errors. Some header files check for undefined USBCON? First two errors: In file included from C:\github\gameport-adapter\firmware\gameport-adapter\HidJoystick.h:20:0, from C:\github\gameport-adapter\firmware\gameport-adapter\gameport-adapter.ino:18: C:\github\gameport-adapter\firmware\gameport-adapter\HidDevice.h:20:45: error: expected class-name before '{' token class HidDevice : public PluggableUSBModule { ^ C:\github\gameport-adapter\firmware\gameport-adapter\HidDevice.h:28:25: error: 'HIDSubDescriptor' has not been declared ...

drzacek commented 1 year ago

Have you chosen the right arduino board in IDE? If you have UNO then it wont work, select arduino leonardo then it has the usb things properly linked and included

AndJ8894 commented 1 year ago

OK, it works! Thanks!