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
4.12.2 You Will Learn
Motor working principle
Broadcast function
Stop other script in sprite block
4.12.3 Build the Circuit
4.12.4 Programming
The effect we want to achieve is to use 2 arrow sprites to control the clockwise and counterclockwise rotation of the
motor and the star sprite respectively, clicking on the star sprite will stop the motor from rotating.
1. Add sprites
Delete the default sprite, then select the Star sprite and the Arrow1 sprite, and copy Arrow1 once.
528 Chapter 4. Play with Scratch

Table of Contents