Home

Awesome

Bongo

A cute bongo cat for your display. Reacts to key input.

Quick Start

  1. Install dependencies with Circup: circup install -r requirements.txt

    Make sure you have downloaded requirements.txt and your device is connected.

    Alternatively you can download and copy dependencies to the /lib directory manually.

  2. Download the latest release and copy its contents to your device

Usage

from adafruit_macropad import MacroPad
from bongo.bongo import Bongo

# Create and show bongo
macropad = MacroPad()
bongo = Bongo()
macropad.display.show(bongo.group)

# Main loop
while True:
    key_event = macropad.keys.events.get()
    bongo.update(key_event)

API

Position

You can position bongo by setting bongo.x and bongo.y:

bongo.x = 30
bongo.y = 20

Animation Time

You can adjust the bounce and tap animation time when creating a bongo instance:

bongo = Bongo(bounce_time=0.05, tap_time=0.05)

Dependencies