Drawing a Square




Use your micro:bit to control drawing a square in Scratch.
This program uses the micro:bit’s button ‘A’ and Accelerometer to guide the pencil sprite around the screen to draw a square and clear the screen.
Once you added the pen extension you are ready to use all the pen blocks and create amazing drawing shapes.
Here is a list of all the pen blocks.
This script helps you to clear the stage and reset the sprite to its initial position.
❏
Try to Make a Multicolored Square in Scratch.
❏
This time use the button “B” to erase the drawing and reset the script to its initial state.
❏
Try to draw this given Square with the help of microbit and scratch.
To draw a equilateral triangle using a micro bit & pen extension follow the given steps. 1. Select Any Sprite for drawing. 2. Resize the sprite to make it small or big. 3. Click Add Extension. 4. Select Pen and microbit 5. Build the given script