Code it: Create a Test Script (Python)
The program on this page will make it so that when you press the micro:bit module’s A button, it tells the HUSKYLENS to learn a color. If you press the B button, it tells the HUSKYLENS to forget everything it learned. If this program works, it proves that the I2C circuit is properly connected.
- If you don’t already have a copy, download microbit_huskylens_proejct.hex.
- Enter the script below into the micro:bit Python Editor.
- Update the project name field to learn_one_color, then click Save.
- Use the Send to micro:bit button to load the program into the micro:bit.
