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
The analog value of the photoresistor can be read:
1. Drag the two basic blocks. Put the baud rate setting block between them and set to 9600.
2. Add a “serial print” block in “forever” loop with the mode “warp”.
3. Drag a “read the value” block from “Light” to the “serial print” block, and set the pin to IO33.
9.2. Scratch Project 275

Table of Contents