Open this page at https://mintgenie.github.io/pxt-orientbit/
Here is the OrientBit - used to change the orientation of MicroBit on certain Robots so that the built-in Compass can be used. It can also be used to add a I2C OLED Display (SSD1306), 2 Wheel encoders, a TCS34725 color sensor and MPU9250 IMU.
Use this extension along with https://github.com/fizban99/microbit_ssd1306 for OLED
Usage Example 1: Here is an example implementation of reading out the Number of Rotations of wheel from the Encoder and displaying it on the OLED Display -
Usage Example 2: Here is an example of using the Maqueen extension and with the onboard Compass to orient the Maqueen to a particular direction - link: https://makecode.microbit.org/_fuP0f2UTicXt The course correct block returns 2 values as an array which are each the speeds of left and right motors.
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/mintgenie/pxt-orientbit and import
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/mintgenie/pxt-orientbit and click import
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
- for PXT/microbit