PS2 Keyboard on ESP32- which pins are suitable?
Posted: 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
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