Approved content
The content below is provided by a partner.
A micro:bit extension for dot, an implementation of LOGO like turtle. dot is a single pixel LED that can be moved around the micro:bit screen. Primary focus of dot, is to introduce concepts like sequencing, loops etc.
Using dot, students can work on various patterns/puzzles such as drawing a line, creating shapes like a square, a triangle, or forming numbers and letters using LEDs. To get dot to complete the puzzles, students experience how to break down puzzles into simple, repeatable steps and, in the process, learn the importance of making sure the steps in the program are written in the correct sequence. Students will practice their sequencing and debugging skills while completing the puzzles and learn how to order dot commands such as move forward, move backward, change directions using turn left or turn right as sequential steps in a program.
dot introductory videos
Walk-thru setting up dot video
Tutorials to get you started with dot
Learning to use move forward block
Learning to use move backward block
Using move forward and move backward blocks
Using turn left and turn right blocks
dot.home()
moves the dot to the center of the screen. dot will be facing forward and pen will be in down mode
dot.home()
dot.moveForward()
moves the dot one step forward, in the current direction. If the pen is set to down, it will highlight the LED in that position.
dot.moveForward()
dot.moveBackward()
moves the dot one step backward based on the current direction. If the pen is set to down, it will highlight the LED in that position.
dot.moveBackward()
dot.turnRight()
turns the dot to the right 90 degrees.
dot.turnRight()
dot.turnLeft()
turns the dot to the left 90 degrees.
dot.turnLeft()
dot.penDown()
sets the dot draw mode to ON. Turns the LEDs when it moves.
dot.penDown()
dot.penUp()
sets the dot draw mode to OFF. Does not the LEDs when it moves.
dot.penUp()
dot.erase()
turns OFF the LED at the current position.
dot.erase()
dot.fillScreen()
turns ON all the LEDs on the screen and sets dot to home position.
dot.fillScreen()
dot.clearScreen()
turns OFF all the LEDs on the screen and sets dot to home position.
dot.clearScreen()
dot.speed()
determines the speed of how fast dot moves on the screen. It is set to default speed of 5.
dot.speed()
MIT
dot=github:Kodely-io/dot#v1.0.8