feat: add external component and some test configurations
This commit is contained in:
parent
4c612fc462
commit
5b0930d616
11 changed files with 511 additions and 6 deletions
66
display_test.yaml
Normal file
66
display_test.yaml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
esphome:
|
||||
name: "display_thing"
|
||||
|
||||
esp8266:
|
||||
board: d1_mini
|
||||
framework:
|
||||
version: recommended
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
ap:
|
||||
ssid: "${devicename}"
|
||||
password: !secret ap_password
|
||||
manual_ip:
|
||||
static_ip: !secret manualip_static_ip
|
||||
gateway: !secret manualip_gateway
|
||||
subnet: !secret manualip_subnet
|
||||
dns1: 1.1.1.1
|
||||
dns2: 1.0.0.1
|
||||
|
||||
api:
|
||||
|
||||
ota:
|
||||
password: "${devicename}"
|
||||
|
||||
logger:
|
||||
# esp8266_store_log_strings_in_flash: false
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
light:
|
||||
- name: NeoPixel Strip 1
|
||||
id: neopixel_strip_1
|
||||
platform: neopixelbus
|
||||
type: GRB
|
||||
variant: WS2812
|
||||
pin: GPIO3
|
||||
num_leds: 200
|
||||
# default_transition_length: 0.2s
|
||||
method:
|
||||
type: esp8266_dma
|
||||
|
||||
display:
|
||||
- platform: addressable_light
|
||||
id: led_matrix_display
|
||||
addressable_light_id: neopixel_strip_1
|
||||
width: 18
|
||||
height: 11
|
||||
rotation: 0°
|
||||
update_interval: 16ms
|
||||
lambda: |-
|
||||
// Draw a bulls-eye pattern
|
||||
Color red = Color(0xFF0000);
|
||||
Color green = Color(0x00FF00);
|
||||
Color blue = Color(0x0000FF);
|
||||
it.rectangle(0, 0, 18, 11, red);
|
||||
it.rectangle(1, 1, 17, 10, green);
|
||||
it.rectangle(2, 2, 16, 9, blue);
|
||||
it.rectangle(3, 3, 15, 8, red);
|
||||
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: current_time
|
||||
timezone: !secret timezone
|
||||
Loading…
Add table
Add a link
Reference in a new issue