necroware / gameport-adapter

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

Error compiling for arduino zero #93

Open 2018robert opened 1 month ago

2018robert commented 1 month ago

Trying to compile your gamport code on arduino ide for resulted in an error - see below. I would greatly appreciate any ideas on how to fix or investigate this issue.

HidDevice.h:159:21: error: 'EP_TYPE_INTERRUPT_IN' was not declared in this scope uint8_t epType[1]{EP_TYPE_INTERRUPT_IN};

full error here:

error.txt

I want to compile for arduino zero because the SAMD21G18A chip has a lot more memory than the ATmega32U4. This should allow me to run the code necessary for a midi interface to operate on the gameport at the same time as joystick code.

necroware commented 1 month ago

I'm afraid you can't just take it and compile for another platform. You will have to implement USB HID registration, since the Arduino code will most probably not work with SAM D21 as is.