This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| import board | |
| from keybow2040 import Keybow2040, number_to_xy, hsv_to_rgb | |
| import usb_cdc | |
| # Some constants | |
| FULLBRIGHT = 1 | |
| MINBRIGHT = 0.05 | |
| # Set up Keybow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # random_notes_scale2.py - play random melody in scale, w/ LEDS & LCD accompaniment | |
| # 16 Jul 2021 - @todbot | |
| import time, random, math | |
| import board, digitalio, pwmio | |
| import adafruit_dotstar # or neopixel | |
| import displayio, terminalio | |
| from adafruit_display_text import label | |
| leds = adafruit_dotstar.DotStar(board.DOTSTAR_CLOCK, board.DOTSTAR_DATA, 5, brightness=0.1) | |
| mylabel = label.Label(terminalio.FONT, text="Music???", x=40,y=50, scale=4, color=0xff00ff) | |
| display = board.DISPLAY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # staroids_code.py -- fakey Almost Asteroids | |
| # 4 Aug 2021 - @todbot | |
| # This is just a sketch, the full version of this idea is at https://github.com/todbot/circuitpython_staroids | |
| import board, time, math, random | |
| import displayio, terminalio, bitmaptools | |
| import adafruit_imageload | |
| import bitmaptools | |
| import digitalio | |
| button_L = digitalio.DigitalInOut(board.BUTTON_UP) |
OlderNewer