Skip to content
Snippets Groups Projects
Commit b755e939 authored by jabertwo's avatar jabertwo
Browse files

added esphome_display03

parent ae22334d
No related branches found
No related tags found
No related merge requests found
{% set devicename = "esphome_display03" %}
{% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp32-doit-devkit-v1.inc.yaml" %}
# force newline
platformio_options:
upload_speed: 115200
lib_deps:
- Wire # Also required by GFX.
- SPI # Also required by GFX.
- adafruit/Adafruit BusIO # Required by GFX Library.
- adafruit/Adafruit GFX Library # Required for FrekvensPanel.
- me-no-dev/ESPAsyncTCP
external_components:
- source: github://phiten/esphome-ikea-led-matrix@master
components: [ frekvens_panel ]
refresh: 0s
{% include "/includes/common.inc.yaml" %}
light:
- platform: monochromatic
name: 'Brightness'
output: matrix_brightness
restore_mode: RESTORE_DEFAULT_ON
output:
- platform: ledc
# Enables brightness control.
max_power: 0.05
id: matrix_brightness
pin:
number: GPIO27
inverted: True
time:
- platform: sntp
id: ntp_time
timezone: 'Europe/Berlin'
font:
- file: "04B03.ttf"
id: b03
size: 8
display:
- platform: frekvens_panel
latch_pin: 13
clock_pin: 26
data_pin: 14
id: my_display
pages:
- id: Page1
lambda: |-
it.strftime(4, 0, id(b03), "%H", id(ntp_time).now());
it.strftime(4, 8, id(b03), "%M", id(ntp_time).now());
interval:
- interval: 5s
then:
- display.page.show_next: my_display
- component.update: my_display
esphome:
name: "{{ devicename }}"
platform: ESP32
board: esp32doit-devkit-v1
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