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.
App structure overview
Section titled “App structure overview”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.
Development
Section titled “Development”Whe n the micro:bit is powered on the code in main.ts is executed.
Assets
Section titled “Assets”TBD
Using bitmaps
Section titled “Using bitmaps”TBD

