Skip to content

Instantly share code, notes, and snippets.

@LelandSindt
Last active February 13, 2024 16:20
Show Gist options
  • Save LelandSindt/ebafbf61a2fa916492c0d80296486f1c to your computer and use it in GitHub Desktop.
Save LelandSindt/ebafbf61a2fa916492c0d80296486f1c to your computer and use it in GitHub Desktop.
esphome:
name: esp32-s2
friendly_name: esp32-s2
esp32:
board: esp32-s2-saola-1
framework:
type: arduino
# Enable logging
logger:
api:
ota:
mdns:
disabled: false
wifi:
ap: {} # This spawns an AP with the device name and mac address with no password.
captive_portal:
web_server:
port: 80
external_components:
- source:
type: git
url: https://github.com/ssieb/esphome_components
components: [ seesaw ]
i2c:
sda: 3
scl: 4
scan: true
id: bus_a
seesaw:
address: 0x36
i2c_id: bus_a
sensor:
- platform: seesaw
id: encoder
type: encoder
name: "Seesaw encoder"
binary_sensor:
- platform: seesaw
id: seesawbutton
name: "Seesaw encoder button"
filters:
invert:
# Enable Stemma QT Power pin VSENSOR and I2C pull-up resistors
# https://learn.adafruit.com/adafruit-esp32-s2-feather/pinouts
- platform: gpio
id: seven
pin:
number: 7
mode:
output: true
pulldown: true
light:
- platform: seesaw
id: pixel
name: "Seesaw neopixel LED"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment