randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
479 stars 56 forks source link

real c64 breadbin keyboard connected via USB arduino not recognized. #154

Closed theshinyknight closed 3 years ago

theshinyknight commented 3 years ago

Not sure what do I have to do to make it work; but it seems that BMC64 does not see it at all. The keyboard is connected to an arduino micro-controller, which is set to be recognized as keyboard. It works fine both under windows and under linux on a raspberry pi.

But when I plug it in and boot the C64, no life sign. A regular wireless keyboard works fine, so there is something about the real keyboard that BMC does not like.

mcgurk commented 3 years ago

Dont use Arduino IDE and default libraries. Problem is that they create USB-device with multiple different roles. Using Arduino IDE micro is detected as serial port USB device. This makes it incompatible with some devices. You can use Atmel studio to create device which acts only as keyboard.

But you don't have to do any coding yourself, because there is ready made firmware for that. soarer's keyboard controller. https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter/tree/master/C64_keyboard

theshinyknight commented 3 years ago

Awesome, will check that out!

The flashing was done on a teensy micro; I assume the keyboard controller linked is able to work on the teensy too? Cheers