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
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…
Reference in New Issue
Block a user