esp-idf-ssd1306/MouseDemo/README.md
2024-08-21 16:02:31 +09:00

1.2 KiB

MouseDemo for SSD1306

Demo of moving a circle using the mouse.
The circle moves when you move the mouse.
I used this component.

Hardware requirements

  • ESP32S2/S3
    These have USB-HOST functionality.

  • USB Connector
    I used this: usb-conector

  • USB mouse
    2-button or 3-button usb mouse.
    Button 3 is not used in this project.

USB wiring

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

How to Use

The circle moves when you move the mouse. usb-mouse-3

Invert with left mouse click.
usb-mouse-2

Right click the mouse to go back.
usb-mouse-1