mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
add nrf sdk build
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
---
|
||||
nrf52:
|
||||
board: nrf52840
|
||||
framework:
|
||||
type: arduino
|
||||
|
||||
esphome:
|
||||
name: nrf52-test
|
||||
|
||||
logger:
|
||||
level: DEBUG
|
||||
logs:
|
||||
switch: NONE
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
pin:
|
||||
@@ -14,10 +21,9 @@ switch:
|
||||
output: true
|
||||
id: gpio_15
|
||||
|
||||
logger:
|
||||
|
||||
interval:
|
||||
- interval: 1sec
|
||||
- interval: 100ms
|
||||
then:
|
||||
- switch.toggle: gpio_15
|
||||
|
||||
@@ -38,8 +44,34 @@ sensor:
|
||||
pin: P0.29
|
||||
id: adc4
|
||||
update_interval: 1s
|
||||
- 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
|
||||
|
||||
beacon:
|
||||
|
||||
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
|
||||
69
tests/test12.1.yaml
Normal file
69
tests/test12.1.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
---
|
||||
nrf52:
|
||||
board: 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
|
||||
49
tests/test12.2.yaml
Normal file
49
tests/test12.2.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
---
|
||||
nrf52:
|
||||
board: nrf52840
|
||||
framework:
|
||||
type: zephyr
|
||||
variant: nrf-sdk
|
||||
|
||||
esphome:
|
||||
name: nrf52-test-zephyr
|
||||
|
||||
logger:
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: 15
|
||||
inverted: true
|
||||
mode:
|
||||
output: true
|
||||
id: gpio_15
|
||||
|
||||
interval:
|
||||
- interval: 500ms
|
||||
then:
|
||||
- switch.toggle: gpio_15
|
||||
|
||||
# sensor:
|
||||
# - platform: uptime
|
||||
# name: Uptime Sensor
|
||||
# update_interval: 5s
|
||||
|
||||
# shell:
|
||||
|
||||
# ipsp:
|
||||
|
||||
# otbr:
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: 14
|
||||
inverted: true
|
||||
mode:
|
||||
output: true
|
||||
id: rest_gpio
|
||||
|
||||
|
||||
dfu:
|
||||
reset_output: rest_gpio
|
||||
Reference in New Issue
Block a user