View on GitHub

pomodoro

Testing again

Open this page at https://padraigfl.github.io/pomodoro/

BBC MicroBit Pomodoro experiment

As the device has a very basic UI and a sound module I figured it had decent potential as a Pomodoro timer and posed an interesting UI challenge in terms of conveying information.

Controls

Currently:

Planned:

Default Behaviour

Menu Behaviour (sets Work, Break, Long break and Cycle length in order)

UI

Minutes are represented by one LED,

Work periods are displayed from top of screen, eg.

#####
#####
####.
.....
.....

Breaks are displayed from the bottom of the screen, eg.

.....
.....
.....
....#
#####

Cycle stage is displayed via a number, eg

..#..
.##..
..#..
..#..
.###.

UI loops through the following screens every 4 seconds:

Goals

Issues encountered

Writing to the internal storage is not achievable via MakeCode so a rewrite in MicroPython is required. I will initially write the menu UIs in MakeCode and that can then be cross referenced with the MicroPython code which should be largely the same

The TypeScript compiler had some issues with some things I tried to do (in particular enum values) so I decided to work around it for now.

To edit this repository in MakeCode.

Blocks preview

This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

A rendered view of the blocks

Metadata (used for search, rendering)