this is initial release for single file

This commit is contained in:
pszafer
2024-04-09 11:36:59 +02:00
parent ca0dde93fa
commit c1abdd358b
30 changed files with 7189 additions and 2008 deletions

View File

@@ -1,9 +0,0 @@
switch:
- platform: gpio
id: buzzer
name: 'Buzzer'
pin:
number: GPIO2
mode:
output: true
inverted: false

View File

@@ -7,7 +7,7 @@ sensor:
on_raw_value:
then:
- text_sensor.template.publish:
id: wt32_uptime
7 id: wt32_uptime
state: !lambda |-
int seconds = round(id(wt32_uptime_seconds).raw_state);
int days = seconds / (24 * 3600);
@@ -111,7 +111,7 @@ display:
- id: last_page
lambda: |-
it.rectangle(0, 0, 126, 15);
it.printf(64,11, id(size_10), TextAlign::BASELINE_CENTER, "boneIO");
it.printf(64,11, id(size_10), TextAlign::BASELINE_CENTER, "bone IO");
it.printf(4, 25, id(size_10), TextAlign::BASELINE_LEFT ,"Current:");
it.printf(124, 25, id(size_10), TextAlign::BASELINE_RIGHT ,"%.3fA", id(ina_current).state);
it.printf(4, 37, id(size_10), TextAlign::BASELINE_LEFT ,"Power:");

View File

@@ -0,0 +1,18 @@
pcf8574:
- id: 'pcf_inputs_1to14'
i2c_id: i2c_bus
address: 0x20
pcf8575: true
- id: 'pcf_inputs_15to28'
i2c_id: i2c_bus
address: 0x21
pcf8575: true
- id: 'pcf_inputs_28to35_menu'
i2c_id: i2c_bus
address: 0x22
pcf8575: false
mcp23017:
- id: 'mcp_left'
address: 0x23
- id: 'mcp_right'
address: 0x24

View File

@@ -1,5 +1,5 @@
uart:
id: uart_pin3_1
id: uart_pin14_15
rx_pin: GPIO14
tx_pin: GPIO15
baud_rate: 9600