Git Product home page Git Product logo

adafruit-macropad-hotkeys-with-extensions's Introduction

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 ๐Ÿงน

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.