Emotional PiSloth

PiSloth is very emotional, sometimes happy, sometimes shy, sometimes confused.

TIPS

You may want to simplify the program with Functions, especially when you perform the same operation multiple times. Putting these operations into a newly declared function can greatly facilitate your use.

Click on the Functions category and select the appropriate function block, the function you created will also appear here.

../_images/emotional2.png

The Function block without output is used here.

../_images/function_name.png

EXAMPLE

Note

  • You can write the program according to the following picture, please refer to the tutorial: How to Create a New Project?

  • Or find the code with the same name on the Examples page of the EzBlock Studio and click Run or Edit directly.

Shy

../_images/shy.png

Confuse

../_images/confuse.png

Happy

../_images/happy.png

Fear

../_images/fear.png

Sad

../_images/sad.png

Fall

../_images/fall.png

Call all custom functions in the Forever block.

../_images/emotional.png