added base.yaml
This commit is contained in:
@@ -1,18 +1,5 @@
|
||||
i2c:
|
||||
- id: temperature_sensor
|
||||
sda: GPIO1
|
||||
scl: GPIO2
|
||||
scan: true
|
||||
- id: buttons
|
||||
sda: GPIO47
|
||||
scl: GPIO48
|
||||
scan: true
|
||||
frequency: 400khz
|
||||
|
||||
spi:
|
||||
clk_pin: GPIO36
|
||||
mosi_pin: GPIO35
|
||||
# miso_pin: GPIOXX
|
||||
packages:
|
||||
base: !include base.yaml
|
||||
|
||||
mcp23008:
|
||||
# - id: 'base_J0'
|
||||
@@ -26,17 +13,6 @@ mcp23008:
|
||||
i2c_id: buttons
|
||||
address: 0x23
|
||||
|
||||
# Define a PWM output on the ESP32
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: GPIO46
|
||||
id: displays_mini_backlight_pwm
|
||||
inverted: True
|
||||
- platform: ledc
|
||||
pin: GPIO3
|
||||
id: display_main_backlight_pwm
|
||||
inverted: True
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: 'base_j2_btn_left'
|
||||
@@ -74,31 +50,9 @@ binary_sensor:
|
||||
mode: INPUT_PULLUP
|
||||
inverted: true
|
||||
|
||||
sensor:
|
||||
- platform: sts3x
|
||||
id: inside_temperature
|
||||
i2c_id: temperature_sensor
|
||||
name: "Temperature"
|
||||
address: 0x4A
|
||||
update_interval: 10s
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
output: displays_mini_backlight_pwm
|
||||
name: "Mini Display Backlight"
|
||||
id: displays_mini_backlight
|
||||
restore_mode: ALWAYS_ON
|
||||
- platform: monochromatic
|
||||
output: display_main_backlight_pwm
|
||||
name: "Main Display Backlight"
|
||||
id: display_main_backlight
|
||||
restore_mode: ALWAYS_ON
|
||||
- platform: neopixelbus
|
||||
id: neopixels
|
||||
type: RGB
|
||||
variant: WS2812
|
||||
pin: GPIO4
|
||||
num_leds: 8
|
||||
- id: !extend neopixels
|
||||
num_leds: 5
|
||||
- platform: partition
|
||||
name: "BAR J3 Left RGB Front"
|
||||
id: bar_j3_left_rgb_front
|
||||
|
||||
Reference in New Issue
Block a user