Macropad Hotkeys With Extension Support

This is a modified version of the OG Hotkeys script from Adafruit. This script allows you to define custom functions to override the main loop to create your own functionalities. Currently, this repo includes a Pomodoro timer and a Bongo Cat thingy as extentions.

Included Extensions

Pomodoro Timer (?)

screenshot of pomodoro

/macros/pomodoro.py

Buttons

  • Green - Start a pomodoro session
  • Yellow - Pause/resume a session
  • Red - Skip the current session

Configuring Pomodoro Sessions

You can customize the sessions duration, short break duration, long break duration and the sequence in which they occur by changing the constant variables defined in /macros/pomodoro.py

Notes

  • "Slacking time" displayed after a session is calculated by (time since first open) - (focused time)
  • Code is a bit messy as of now

Bongo Cat

bonogo

/macros/bongo.py

Bongo cat that taps when you tap. Based off of this repo. Dependencies required by bongo cat are included in the /lib directory.

Creating your own extensions

You can use the template given in /macros/sample.py to create your own extensions.

Roadmap

  • Base structure
  • Pomodoro Timer
  • Bongo Cat
  • Track focused time
  • Track slacking time
  • Refactor/clean up Pomodoro timer šŸ§¹