EasyManua.ls Logo

Keyestudio ESP32 - 4. Test Code

Keyestudio ESP32
344 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ESP32 Starter Kit
3. Wiring Diagram
4. Test Code
1. Drag two basic blocks. Add the serial baud rate module and set the baud rate to 9600.
2. Drag the DHT module from “Temperature and humidity” and set the pin to IO26, mode to dht11.
3. Add serial print module with no-wrap, and set the print to “RH:”, then follow the steps below, and add a delay
of 1s.
Complete Code:
9.2. Scratch Project 293

Table of Contents