MCUdude / MightyCore

Arduino hardware package for ATmega1284, ATmega644, ATmega324, ATmega324PB, ATmega164, ATmega32, ATmega16 and ATmega8535
Other
637 stars 181 forks source link

atmega32-mighty-core-ps2-keyboard #221

Closed madhavanatmel closed 2 years ago

madhavanatmel commented 2 years ago

hi, i am trying to connect ps2 keyboard in atmega32 and using pin no . 16&17 as Arduino pin 10&11 for ps2 keyboard Data pin & IRQ Pin . But i couldn't get any keycode in the serial monitor . at the beginning KEYBOARD test message is from m32 after that nothing is coming . image the same keyboard and ps2 keyboard library working well with uno using Arduino pin as 2& 3

MCUdude commented 2 years ago

The library is written to be hardware independent, but nobody has actually added explicit support for the ATmega32. You can try adding || defined(__AVR_ATmega32__) to this line in int_pins.h.

https://github.com/PaulStoffregen/PS2Keyboard/blob/13026d373f38da42ceda1de24ab15ea6405ef46c/utility/int_pins.h#L33

madhavanatmel commented 2 years ago

Good that now working ..

elif defined(AVR_ATmega644P) || defined(AVR_ATmega32) // Sanguino.

standard pin layout .

MCUdude commented 2 years ago

Great to hear!