EasyManua.ls Logo

Keyestudio ESP32 - 5. Test Result; 6. Knowledge Expansion

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
5. Test Result
After connecting the wiring and uploading code, open serial monitor to set baud rate to 9600, and the serial port starts
to print the distance value.
6. Knowledge Expansion
Lets make a rangefinder.
We display characters on LCD 1602. Program to show “Keyestudio” at (3,0) and “distance:” at (0,1) followed by the
distance value at (9,1).
When the value is smaller than 100(or 10), a residue of the third(or the second) bit still exists. Therefore, an “if”
judgement is necessary to determine a certain condition.
Wiring Diagram
308 Chapter 9. Scratch Tutorial

Table of Contents