Unleash the bricks 2025 : bot demo code
Content
This comes with preinstalled libraries:
- Huskylens
- amaker-motor
- Unleash the bricks
- UTB Bot : all about your bot
- UTB Radio : to adjust radio channel (only used at start)
Code allows to changes the radio group with logo long press to get the same radio group as UTB controller at start..
You will see in the code
- to declare you belong to a team
- to register your callback code on
START
,STOP
, orDANGER
- to change bot status
- to increase number of collected balls
- to emit status
Also, this demo code can simulate controller using buttons :
button | action |
---|---|
A | call code for START |
B | call code for DANGER |
A+B | call code for STOP |
!!! BEFORE YOU RUN !!! you must change the content of setSpeed
to address your motors connection pin :)
Open this page at https://taccart.github.io/amaker-unleash-the-bricks-2025-lib-usage-demo/
Repo infos
Use as Extension
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/taccart/amaker-unleash-the-bricks-2025-lib-usage-demo and import
Edit this project
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/taccart/amaker-unleash-the-bricks-2025-lib-usage-demo and click import
Metadata (used for search, rendering)
- for PXT/microbit