https://github.com/padraigfl/bbcmicrobit-pomodoro
Super crude Pomodoro timer as an exploration for BBC MicroBit Go uses
https://github.com/padraigfl/bbcmicrobit-pomodoro
bbc-microbit kids-programming microbit microcontroller pomodoro
Last synced: 3 months ago
JSON representation
Super crude Pomodoro timer as an exploration for BBC MicroBit Go uses
- Host: GitHub
- URL: https://github.com/padraigfl/bbcmicrobit-pomodoro
- Owner: padraigfl
- Created: 2019-06-02T21:23:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-09T18:38:59.000Z (about 6 years ago)
- Last Synced: 2025-02-14T08:34:22.910Z (4 months ago)
- Topics: bbc-microbit, kids-programming, microbit, microcontroller, pomodoro
- Language: TypeScript
- Size: 493 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MicroBit Pomo
A simple pomodoro timer to make use of a BBC MicroBit I had hanging around.
Coded via https://makecode.microbit.org/#editor in JavaScript, sorry for the long ass file.
Their IDE imports happen automatically, you can assume everything was in one file.The code is available in a .hex file in the project, you just have to add it to the microcontroller via usb to try it out.
## Controls
A: Start timer (if not started)
B: Cancel (pretty sure this doesn't work right now...)## UI
Pretty simple counting of the LEDs for the countdowns. Breaks follow and inverted layout.
With each minute that passes you're given a reminder of the current cycle count.
## File Structure
Imports are handled implicitly via the editor, hence the weirdness here.
### `main.ts`
The main operations
### `custom.ts`
The matrix print function was really badly broken with types (dynamically composed strings weren't being accepted) so I had to make this collection of functions
## Todo
I'll probably never go beyond getting the times right, but some scope for expansion here
- [ ] Switch to Python for greater control (saving data on device)
- [ ] Get working with VS code https://makecode.com/cli
- [ ] Testing
- [ ] Options?
- [ ] Data tracking
- [ ] Threading to allow more user control? Better visual feedback?