Remote Control

You can also use the widgets on EzBlock Studio to make PiSloth move.

../_images/remote_control_pic.jpg

TIPS

To use the remote control function, you need to enter the Remote Control page from the left side of main page, and then drag one D-pad and 4 buttons to the central area.

../_images/control3.png

Back in the programming page, you will see an additional Remote category, and the D-pad and Button block appear in it.

  • Button () get value: This block is used to read the value of the buttons, if the button is pressed, the value is 1, otherwise it is 0.

  • Button () is (press/release): This block and Button () get value = (0/1) have the same effect and can be used directly to determine whether a button is pressed or not.

  • D-pad () get () value: This block is used to read the up/down/left/right (selected through the drop-down menu) pad values, press for 1 and release for 0.

../_images/control4.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.

../_images/control.png