8000 GitHub - christanaka/circuitpython-bongo: A cute bongo cat for your display.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

christanaka/circuitpython-bongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A cute bongo cat for your display.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0