EasyManua.ls Logo

Keyestudio ESP32 - 3. Wiring Diagram; 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
Triode switch: Briefly, LED lights up when the base(pin 1) is at a high level. In the same breath, the collector(pin 3)
and emitter(pin 2) are connected, and then VCC passes through a current-limiting resistor to LED and finally to GND,
which forms a circuit. On the contrary, LED goes off when the base is at low. In this circumstance, the collector and
emitter are disconnected and the LED lights off.
3. Wiring Diagram
9.2.3 4. Test Code
According to previous principles, we can control LED via levels of pins on the development board.
1. Drag the following block in “Events” part.
2. Drag the following block in “Control” part .
166 Chapter 9. Scratch Tutorial

Table of Contents