5. Ring:bit Blocks Info

5.1. Add Packages


  • The extension of the Ring:bit requires to be added if yuo want to use the Ring:bit blocks.

  • Following the steps below to add it.

Step 1

  • Click “Advanced” in thte MakeCode drawer to see more choices.

../../_images/Ringbit-extension-01.png

Step 2

  • Search “ringbitcar” in the dialogue box and click the circled part for downloading.

../../_images/Ringbit-extension-02.png

Step 3

  • Extension sucessfully gets loaded.

../../_images/Ringbit-extension-03.png

5.2. Blocks Info


../../_images/Ringbit-extension-04.png

Before programming, the pins must be connected correctly with the equivalent wheels in this block.


../../_images/Ringbit-extension-05.png

To drive the car forward or backward for a certain time in seconds.


../../_images/Ringbit-extension-06.png

To drive the car forward or backward to a certain distance(For reference operation only).


../../_images/Ringbit-extension-07.png

To turn the directions of the car to right or left at a certain angle(For reference operation only).


../../_images/Ringbit-extension-08.png

To drive the car forward at the full speed.


../../_images/Ringbit-extension-09.png

To drive the car backward at the full speed.


../../_images/Ringbit-extension-10.png

To turn the car to the left at the full speed.


../../_images/Ringbit-extension-11.png

To turn the car to the right at the full speed.


../../_images/Ringbit-extension-12.png

To stop the car.


../../_images/Ringbit-extension-13.png

To define the speed of the left wheel or the right wheel.


../../_images/Ringbit-extension-14.png

To detect the status of the detector with the line-tracking sensor.


../../_images/Ringbit-extension-15.png

To get the distance detected from the ultrasonic sound sensor.


Program


5.3. FAQ


5.4. Relevant File