User Manual

27
You can also click the drop-down list to choose a digital port and set it as a high or low level.
In this experiment, we will connect the LED light to the Digital1 and by controlling the Digital1
to output "1" and "0" signals to turn on and off the LED light. Details are shown in the below
figure.
The complete code is shown as below.
Click the green flag or click the program block to run the program. When you press down
the button, the LED light will be turned on and when you release the button, the LED will be
off.
SunFounder