PS2 Keyboard on ESP32- which pins are suitable?

hbanko
Posts: 1
Joined: Tue Jan 30, 2018 9:32 am

PS2 Keyboard on ESP32- which pins are suitable?

Postby hbanko » Tue Jan 30, 2018 9:42 am

Hi,

I am planning to use a PS/2 keyboard on an ESP32. The library I found is designed for an ESP32 but what is not clear to me is what pins would be compatible with it (suitable for the task). Below a link to it:

https://github.com/michalhol/ps2kbdlib

I have tried these Pins together with the Keyboard but not success.

#define KEYBOARD_DATA 13
#define KEYBOARD_CLK 15

Also randomly tried other pins. Seems only certain pins can do what is needed but I have no clue which ones. Just trying my luck seems not to work :-). What makes it increasingly difficult is that some of the pins are already in use as I am running at the same time an ILI9341 display on it:

#define _cs 17 // goes to TFT CS
#define _dc 16 // goes to TFT DC
#define _mosi 23 // goes to TFT MOSI
#define _sclk 18 // goes to TFT SCK/CLK
#define _rst 5 // goes to TFT RESET
#define _miso // Not connected

Any help would be appreciated.

Holger

Cubicap
Posts: 1
Joined: Sun Apr 15, 2018 8:48 pm

Re: PS2 Keyboard on ESP32- which pins are suitable?

Postby Cubicap » Sun Apr 15, 2018 9:19 pm

Hello,
Sorry to answer so late.
Data pin should work with all pins, clock pin should work with all pins which support interrupts (I have not used ESP32 for a while so I'm not sure which do that).

If it's still live, can you post here your code?

Who is online

Users browsing this forum: No registered users and 3 guests