mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-11 04:50:29 +02:00
this is initial release for single file
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: buzzer
|
||||
name: 'Buzzer'
|
||||
pin:
|
||||
number: GPIO2
|
||||
mode:
|
||||
output: true
|
||||
inverted: false
|
||||
@@ -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:");
|
||||
|
||||
18
devices_v0_7/pcf_with_mcp.yaml
Normal file
18
devices_v0_7/pcf_with_mcp.yaml
Normal 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
|
||||
@@ -1,5 +1,5 @@
|
||||
uart:
|
||||
id: uart_pin3_1
|
||||
id: uart_pin14_15
|
||||
rx_pin: GPIO14
|
||||
tx_pin: GPIO15
|
||||
baud_rate: 9600
|
||||
|
||||
Reference in New Issue
Block a user