Skip to content

Instantly share code, notes, and snippets.

@SqyD
Last active October 26, 2025 15:19
Show Gist options
  • Select an option

  • Save SqyD/771dbc3ea698ae8606bc3be56f23d7fa to your computer and use it in GitHub Desktop.

Select an option

Save SqyD/771dbc3ea698ae8606bc3be56f23d7fa to your computer and use it in GitHub Desktop.
ESPHome for Seed Reterminal E1002
# Example Yaml for the Seeed Reterminal with Colordisplay.
# Uses the new epaper_spi component and LVGL.
esphome:
name: reterminal
friendly_name: reTerminal
on_boot:
- priority: -100
then:
- lvgl.page.show: first_page
- component.update: epaper_display
esp32:
board: esp32-s3-devkitc-1
flash_size: 32MB
framework:
type: esp-idf
psram:
mode: octal
logger:
api:
encryption:
key: !secret api_key
ota:
- platform: esphome
password: !secret reterm_ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: !secret reterm_ap_ssid
password: !secret reterm_ap_password
captive_portal:
# Button configuration
binary_sensor:
- platform: gpio
pin:
number: GPIO3 # Green button
mode: INPUT_PULLUP
inverted: true
id: button_1
name: "Button 1"
- platform: gpio
pin:
number: GPIO4 # Right white button
mode: INPUT_PULLUP
inverted: true
id: button_2
name: "Button 2"
on_press:
then:
- lvgl.page.next
- delay: 500ms
- component.update: epaper_display
- platform: gpio
pin:
number: GPIO5 # Left white button
mode: INPUT_PULLUP
inverted: true
id: button_3
name: "Button 3"
on_press:
then:
- lvgl.page.previous
- delay: 500ms
- component.update: epaper_display
i2c:
scl: GPIO20
sda: GPIO19
sensor:
- platform: sht4x
temperature:
name: "Temperature"
id: temp_sensor
humidity:
name: "Relative Humidity"
id: hum_sensor
- platform: adc
pin: GPIO1
name: "Battery Voltage"
id: battery_voltage
update_interval: 600s
attenuation: 12db
filters:
- multiply: 2.0
# LED configuration
output:
- platform: gpio
pin: GPIO6
id: led_output
inverted: true
light:
- platform: binary
name: "Onboard LED"
output: led_output
id: onboard_led
# define SPI interface
spi:
clk_pin: GPIO7
mosi_pin: GPIO9
color:
- id: black
hex: "000000"
- id: white
hex: "FFFFFF"
image:
- file: epaper_resized_paul.png #/home/paul/esp/paul.png # Path to your image file (JPG or PNG)
id: myImage
type: RGB565
display:
- platform: epaper_spi
id: epaper_display
model: 7.3in-spectra-e6
cs_pin: GPIO10
dc_pin: GPIO11
reset_pin:
number: GPIO12
inverted: false
busy_pin:
number: GPIO13
inverted: true
update_interval: 6000s
auto_clear_enabled: false
lvgl:
keypads:
enter: button_1
next: button_2
prev: button_3
buffer_size: 12%
theme:
label:
text_color: black
bg_color: white
pages:
- id: first_page
widgets:
- image:
align: CENTER
src: myImage
- id: second_page
widgets:
- label:
align: CENTER
text: 'Hello World!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment