adapt yaml to qspi
This commit is contained in:
parent
059dacbd06
commit
7c0a85d321
1 changed files with 12 additions and 7 deletions
|
@ -5,7 +5,7 @@ esphome:
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32dev
|
board: esp32dev
|
||||||
framework:
|
framework:
|
||||||
type: arduino
|
type: esp-idf
|
||||||
|
|
||||||
# Enable logging
|
# Enable logging
|
||||||
logger:
|
logger:
|
||||||
|
@ -49,7 +49,7 @@ time:
|
||||||
then:
|
then:
|
||||||
- logger.log:
|
- logger.log:
|
||||||
level: INFO
|
level: INFO
|
||||||
format: "%2d:%2d:%2d.%2d"
|
format: "%02d:%02d:%02d.%02d"
|
||||||
args:
|
args:
|
||||||
- 'uint32_t(id(runtime).state/3600) - uint32_t(id(runtime).state/86400)*1440'
|
- 'uint32_t(id(runtime).state/3600) - uint32_t(id(runtime).state/86400)*1440'
|
||||||
- 'uint32_t(id(runtime).state/60) - uint32_t(id(runtime).state/3600)*60'
|
- 'uint32_t(id(runtime).state/60) - uint32_t(id(runtime).state/3600)*60'
|
||||||
|
@ -57,8 +57,14 @@ time:
|
||||||
- 'uint32_t((id(runtime).state - uint32_t(id(runtime).state))*25)'
|
- 'uint32_t((id(runtime).state - uint32_t(id(runtime).state))*25)'
|
||||||
|
|
||||||
spi:
|
spi:
|
||||||
clk_pin: GPIO18
|
- id: quad_spi_bus
|
||||||
mosi_pin: GPIO19
|
interface: spi3
|
||||||
|
clk_pin: 18
|
||||||
|
data_pins:
|
||||||
|
- 23
|
||||||
|
- 19
|
||||||
|
- 22
|
||||||
|
- 21
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: uptime
|
- platform: uptime
|
||||||
|
@ -66,12 +72,11 @@ sensor:
|
||||||
update_interval: 100ms
|
update_interval: 100ms
|
||||||
|
|
||||||
display:
|
display:
|
||||||
- platform: spi_74hc595_display
|
- platform: qspi_74hc595_4x_display
|
||||||
cs_pin: GPIO5
|
cs_pin: GPIO5
|
||||||
data_rate: 10MHz
|
data_rate: 10MHz
|
||||||
num_chips: 1
|
|
||||||
update_interval: 10ms
|
update_interval: 10ms
|
||||||
reverse: false
|
spi_id: quad_spi_bus
|
||||||
lambda: |-
|
lambda: |-
|
||||||
static uint32_t clock_frames=0;
|
static uint32_t clock_frames=0;
|
||||||
static uint32_t old_clock=0;
|
static uint32_t old_clock=0;
|
||||||
|
|
Loading…
Reference in a new issue