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:
Maxin John 2023-10-20 18:16:52 +03:00 committed by Anas Nashif
commit 461cc8c136

View 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)>;
};
};