Line Tracing

MakeCode Programming Tutorial

Search for KOI2 in the search bar, select KOI 2.(KOI 2 has been approved by Microsoft)

The extension will be imported into your project.

Coding Blocks

Sample Program

circle-info

Armourbit users need to use the corresponding initialization block

Sample Programarrow-up-right

Sample Program Operations

  1. Press Button A on the Micro:bit to track a black line, Micro:bit will display the X1 coordinates of the tracked line.

  2. Press Button B on the Micro:bit to track a custom color line, aim the KOI at the color for calibration. Micro:bit will display the X1 coordinates of the tracked line.

Last updated