russhughes / s3lcd

ESP_LCD based MicroPython driver for ESP32-S3 Devices with ST7789 or compatible displays.
Other
70 stars 11 forks source link

Buttons for T-HMI #3

Closed lesept777 closed 1 year ago

lesept777 commented 1 year ago

You can add the following lines in the buttons config file:

        # Buttons above the display
        self.ONOFF = Pin(21, Pin.IN)  # Sends 1 when pressed
        self.BOT   = Pin(0, Pin.IN)   # Sends 0 when pressed