User Manual
23
PiSmart and observe how the LEDs act. Interesting control, isn't it?
So when you say "turn on" to the robot, the LEDs will light up accordingly. If you say "turn off",
LEDs will dim then. If you say "light flashing ", LEDs will flashing 10 times. But if you say other
things, since no more is written in the combined block, it won't do anything and just stay the
status.
In this code, comparing to the time for lighting up and out the LED light, the time for flashing
it is too long. However, you can build a new chunk to take the place of this code.
Create a Block
Step 1: Click the Variables category and find the Make-a-block below and click it, and the
following window as shown in the figure will be popped up.
Step 2: Choose the category of the new block. Here you can classify it into the PiSmart
category. Click PiSmart and select it. Next step is to input the block name in the input box
and click OK. Then you will see a new pop-up window.
SunFounder