Approved content

The content below is provided by a partner.

Kodely-io/dot 1.0.8 GitHub

Kodley dot

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.

Setup & Intro Videos

dot introductory videos

Walk-thru setting up dot video

dot intro video

dot Tutorials

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

Kodely dot reference

home

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()

move forward

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()

move backward

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()

turn right

dot.turnRight() turns the dot to the right 90 degrees.

dot.turnRight()

turn left

dot.turnLeft() turns the dot to the left 90 degrees.

dot.turnLeft()

penDown

dot.penDown() sets the dot draw mode to ON. Turns the LEDs when it moves.

dot.penDown()

penUp

dot.penUp() sets the dot draw mode to OFF. Does not the LEDs when it moves.

dot.penUp()

erase

dot.erase() turns OFF the LED at the current position.

dot.erase()

fillScreen

dot.fillScreen() turns ON all the LEDs on the screen and sets dot to home position.

dot.fillScreen()

clearScreen

dot.clearScreen() turns OFF all the LEDs on the screen and sets dot to home position.

dot.clearScreen()

speed

dot.speed() determines the speed of how fast dot moves on the screen. It is set to default speed of 5.

dot.speed()

License

MIT

Supported targets

Metadata (used for search, rendering)

dot=github:Kodely-io/dot#v1.0.8