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

Teensy 2.0 support possible #42

Closed YARD2 closed 1 year ago

YARD2 commented 1 year ago

Hi, More a question. Would it be possible to compile the firmware to work with a Teensy 2.0 ? BR

necroware commented 1 year ago

Probably yes, the IC is the same, but you have to reassign the pins, since Pro Micro has another pinout.

YARD2 commented 1 year ago

I'm not very familiar with arduino. Pin Layout could be changed with compiler directives, I guess. But I have problems to use the Tennsy extension. It looks like some path are missing during compile. https://www.pjrc.com/teensy/td_download.html It also works only with 1.8.19 IDE

necroware commented 1 year ago

Well, this project has been designed for the Pro Micro. I have no Teensy and never had one, but I'm quite sure, you can make it work with some modification. You just have to edit GamePort.h accordingly.

YARD2 commented 1 year ago

The main reason for the teensy is, the user friendly FW update Bootloader. You can just press the button and use a standalone software tool to update the firmware via USB. I'm not sure if something is available for arduino.

necroware commented 1 year ago

Same for Arduino. You open the project in the software and press upload. Done.

YARD2 commented 1 year ago

Yes, more or less. For Teensy, you don't need the Arduino software package, only a small Bootloader update software an upload the hex file.

necroware commented 1 year ago

For Arduino you don't need the studio as well, if you know, what you are doing. I don't use the IDE and have VIM integration. It's just simpler with the IDE for newbies. Eventually it takes longer to write this, than just to take the IDE and flash the MCU ;)

YARD2 commented 1 year ago

Which USB-Bootloader do you use ?

necroware commented 1 year ago

Arduinos are already delivered with preinstalled boot loader. You usually don't need to install one. But this is out of scope of this ticket. You probably can use Teensy if you want, just adapt the pin IDs in the code GamePort.h and flash it to your MCU. I guess, it will work, but as I said, I didn't try.