esp-idf-ssd1306/KeyboardDemo
2024-08-21 16:41:07 +09:00
..
main added KeyboardDemo 2024-08-21 15:49:59 +09:00
CMakeLists.txt added KeyboardDemo 2024-08-21 15:49:59 +09:00
README.md Update README.md 2024-08-21 16:41:07 +09:00
sdkconfig.defaults added KeyboardDemo 2024-08-21 15:49:59 +09:00

KeyboardDemo for SSD1306

Demo that displays input from the keyboard.
I used this component.

usb-keyboard-1

Hardware requirements

  • ESP32S2/S3
    These have USB-HOST functionality.

  • USB Connector
    I used this:
    usb-conector

  • USB keyboard

USB wiring

ESP32-S2/S3 BOARD          USB CONNECTOR
                           +--+
    [  5V   ]    --------> | || VCC
    [GPIO 19]    --------> | || D-
    [GPIO 20]    --------> | || D+
    [  GND  ]    --------> | || GND
                           +--+

USB live connection

There are times when it works correctly and times when it doesn't.
It works more stably if you connect before starting the firmware.
When it works correctly, a log like this will be displayed.

I (796) usb_hid: hid_host_device_callback
I (796) usb_hid: HID Device, protocol 'KEYBOARD' CONNECTED
I (806) usb_hid: hid_host_device_callback
I (806) usb_events: event_flags=0x0
I (816) usb_hid: HID Device, protocol 'NONE' CONNECTED
I (816) usb_events: event_flags=0x0

Using USB-HUB

I tried it, but it doesn't work properly via USB-HUB.