Skip to content

Walkthrough of an example app

This section explains the architecture of a micro:bit app starting with an overview. This is followed by a walkthrough of the code found at microbit-apps/example.

There are four key parts a micro:bit app:

  • ui-controls is an extension used by all micro:bit apps, it gives you control of the display in STS, common assets, and high level GUI components
  • main.ts is the entry point of your app
  • pxt.json is where the name of app, its dependencies (extensions like user-interface-base) and the files (like app.ts) are declared.

Whe n the micro:bit is powered on the code in main.ts is executed.

TBD

TBD