mirror of
https://github.com/esphome/esphome.git
synced 2024-11-17 10:55:36 +01:00
70 lines
961 B
YAML
70 lines
961 B
YAML
---
|
|
nrf52:
|
|
board: adafruit_itsybitsy_nrf52840
|
|
framework:
|
|
type: zephyr
|
|
variant: generic
|
|
|
|
esphome:
|
|
name: nrf52-test-zephyr
|
|
|
|
logger:
|
|
|
|
switch:
|
|
- platform: gpio
|
|
pin:
|
|
number: 15
|
|
inverted: true
|
|
mode:
|
|
output: true
|
|
id: gpio_15
|
|
|
|
|
|
interval:
|
|
- interval: 100ms
|
|
then:
|
|
- switch.toggle: gpio_15
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: 9
|
|
mode: INPUT_PULLUP
|
|
|
|
id: gpio_9
|
|
|
|
sensor:
|
|
- platform: pulse_width
|
|
pin: P0.10
|
|
id: gpio_10
|
|
update_interval: 3s
|
|
- platform: uptime
|
|
name: Uptime Sensor
|
|
update_interval: 5s
|
|
|
|
dfu:
|
|
reset_output: rest_gpio
|
|
|
|
output:
|
|
- platform: gpio
|
|
pin:
|
|
number: 14
|
|
inverted: true
|
|
mode:
|
|
output: true
|
|
id: rest_gpio
|
|
|
|
debug:
|
|
update_interval: 1s
|
|
|
|
text_sensor:
|
|
- platform: debug
|
|
device:
|
|
name: "Device Info"
|
|
reset_reason:
|
|
name: "Reset Reason"
|
|
|
|
deep_sleep:
|
|
run_duration: 10s
|
|
sleep_duration: 10s
|