/power_mode

Playful game that works on keyboard input

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Hardware Powermode

This repository contains the code required to run a hardware implementation of editor extensions like 'POWER MODE'

https://marketplace.visualstudio.com/items?itemName=hoovercj.vscode-power-mode'

The game

Each stroke adds to your combo after 10 seconds of inactivity the combo resets to 0.

The display will alternate between your current combo and your median WPM Combo

WPM

The game also tracks your max combo and will display it and your most recent median WPM after the combo resets.

Game Over

High level architecture

When the program starts up it looks for a number of arduinos and hooks them up as controller. It then sets up two 'events': Key down, and tick.

When either of these events happen the internal game state updates, and the event along with the current state is passed to any active controllers.

Controllers communicate with hardware over a serial connection. Protocol is documented in functions that send data over it

Hardware

Ardunio uno hooked up to four 12v relays aimed at some bells Bells

Adafruit Metro M4 connected to a 64x32 RGB LED Matrix - 3mm pitch
(The controller code is very specific to this hardware) Combo