EasyManua.ls Logo

SunFounder ESP32

Default Icon
771 pages
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...
SunFounder ESP32 Starter Kit
3. Read the value of pin35
Store the value of pin35 read into the variable value.
[set my variable to 0]: Set the value of the variable.
[read analog pin ()]: Read the value of pins in the range of 0-4095.
To be able to read all the way through, you need to use the [forever] block. Click on this script to run it, rotate the
potentiometer in both directions, and you will see that the value range is 0-1023.
496 Chapter 4. Play with Scratch

Table of Contents