samples: sensor: dht: add longan_nano overlay
Add an overlay to use DHT11 temperature/humidity sensor in Longan Nano. Signed-off-by: Maxin John <maxin.john@gmail.com>
This commit is contained in:
parent
b654b61699
commit
461cc8c136
1 changed files with 11 additions and 0 deletions
11
samples/sensor/dht/boards/longan_nano.overlay
Normal file
11
samples/sensor/dht/boards/longan_nano.overlay
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
dht22 {
|
||||||
|
compatible = "aosong,dht";
|
||||||
|
status = "okay";
|
||||||
|
dio-gpios = <&gpiob 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||||
|
};
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue