Skip to content
Snippets Groups Projects
Commit 83e3e7be authored by 3d's avatar 3d
Browse files

update display02 change to esp32

parent d1aeff5a
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.d1_mini.inc.yaml" %} {% include "/includes/board.d1_mini.inc.yaml" %}
# force newline
platformio_options: platformio_options:
upload_speed: 115200
lib_deps: lib_deps:
- Wire # Also required by GFX. - Wire # Also required by GFX.
- SPI # Also required by GFX. - SPI # Also required by GFX.
...@@ -18,7 +18,8 @@ external_components: ...@@ -18,7 +18,8 @@ external_components:
components: [ obegraensad_panel ] components: [ obegraensad_panel ]
refresh: 0s refresh: 0s
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
...@@ -34,25 +35,36 @@ light: ...@@ -34,25 +35,36 @@ light:
name: 'Brightness' name: 'Brightness'
id: matrix_light id: matrix_light
output: matrix_brightness output: matrix_brightness
restore_mode: RESTORE_DEFAULT_ON restore_mode: ALWAYS_ON
output: output:
- platform: esp8266_pwm - platform: ledc
# Enables brightness control. # Enables brightness control.
id: matrix_brightness id: matrix_brightness
pin: pin:
number: GPIO14 number: GPIO25
inverted: True inverted: True
globals: globals:
- id: coords - id: coords
type: int type: int
restore_value: no restore_value: no
initial_value: '0' initial_value: '0'
- id: length - id: length
type: int type: int
restore_value: no restore_value: no
initial_value: '0' initial_value: '0'
binary_sensor:
- platform: gpio
pin:
number: GPIO26
inverted: true
mode:
input: true
pullup: true
id: button
name: button
time: time:
- platform: sntp - platform: sntp
...@@ -100,8 +112,8 @@ text_sensor: ...@@ -100,8 +112,8 @@ text_sensor:
display: display:
- platform: obegraensad_panel - platform: obegraensad_panel
latch_pin: 12 latch_pin: 12
clock_pin: 04 clock_pin: 14
data_pin: 05 data_pin: 27
id: my_display id: my_display
pages: pages:
- id: Page1 - id: Page1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment