EasyManua.ls Logo

Keyestudio ESP32 - Page 313

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
Code
1. Drag the two basic blocks.
2. In “LCD”, initialize the LCD. Drag an “LCD print” block and add character string “Keyestudio” (It also can
be put out of “forever” block as this display is fixed). Add a “variable” block and set type to int and name to
“distance” with an initial assignment of 0.
3. Assign the read distance value to the variable “distance”. Set the LCD to print “Distance” and followed by the
distance value (and we need calculate the front displayed characters in advance to set a cursor followed them).
9.2. Scratch Project 309

Table of Contents