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
491 stars 59 forks source link

GPIO Config 2 : GPIO Keyboard and Joysticks does not work properly #268

Open NurseEdna opened 3 months ago

NurseEdna commented 3 months ago

Hi,

the BMC64 works really fine on my Pi3, even attached Joysticks to the GPIO (Config 1). Works well.

Then I removed the Joy-GPIO wiring and attached the C64II keyboard as shown in your corresponding section for GPIO Config 2 and it almost worked.

Unfortunately some keys (highlighted in red below) did not respond at all, some other keys (yellow) responded, but yielded not the correct letter resp. symbol.

So my first thought was that I messed up with one two cables in the breadboard wiring btw. keyboard and GPIO, but I checked that several times against the table in the section for GPIO Config 2 and found nothing wrong.

Do you have any clue what might be the issue here (except for a defective keyboard and bad wiring)?

Thanks a lot Best regards

keyboard

nickgoodmanuk commented 3 months ago

Have a look at the matrix here :

https://sta.c64.org/cbm64kbdlay.html

Your red keys are all on bit4 - suggesting a bad connection to a GPIO pin. Yellow keys on on bit5 - maybe that connection is iffy too. Hope that helps.

NurseEdna commented 2 months ago

Yeah, I also saw the affected keys belong to the same bit, so either the keyboard is broken or (most likely) I messed up with the GPIO wiring.

Thanks for the hint :-) I will give it a try and re-wire the pins.

Regards