Try it out: https://makecode.microbit.org/_2MTDHL9cAeTq
A simple example to keep count of different ways of getting here
- Driving (P0)
- Public Transport (P1)
- Cycling/Walking (P2)
Button A: Displays a simple graph for each of the types above
- 0: No LED
- 1-5: 1 LED
- 6-10: 2 LEDs
- More than 10: 3 LEDs
Button B: Displays each P0/1/2 counts so far - scrolling
Button A+B: Resets the programme - clearing everything.
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/whykay/getting-here 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/whykay/getting-here and click import
Blocks preview
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

Metadata (used for search, rendering)
- for PXT/microbit