format
This commit is contained in:
parent
58926b5549
commit
a983b6a93f
3 changed files with 6 additions and 6 deletions
|
|
@ -36,7 +36,6 @@ class FruitJam:
|
|||
def __init__(self):
|
||||
self.peripherals = Peripherals()
|
||||
|
||||
|
||||
@property
|
||||
def neopixels(self):
|
||||
return self.peripherals.neopixels
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ Implementation Notes
|
|||
|
||||
"""
|
||||
|
||||
import adafruit_tlv320
|
||||
import audiobusio
|
||||
import board
|
||||
import displayio
|
||||
|
|
@ -34,7 +35,6 @@ import picodvi
|
|||
import supervisor
|
||||
from digitalio import DigitalInOut, Direction, Pull
|
||||
from neopixel import NeoPixel
|
||||
import adafruit_tlv320
|
||||
|
||||
__version__ = "0.0.0+auto.0"
|
||||
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FruitJam.git"
|
||||
|
|
@ -88,6 +88,7 @@ class Peripherals:
|
|||
neopixels (NeoPxiels): The NeoPixels on the Fruit Jam board.
|
||||
See https://circuitpython.readthedocs.io/projects/neopixel/en/latest/api.html
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
self.neopixels = NeoPixel(board.NEOPIXEL, 5)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
# SPDX-FileCopyrightText: Copyright (c) 2025 Tim Cocks for Adafruit Industries
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
import time
|
||||
|
||||
import displayio
|
||||
import supervisor
|
||||
from audiocore import WaveFile
|
||||
import time
|
||||
|
||||
from adafruit_fruitjam import FruitJam
|
||||
|
||||
|
||||
colors = [0xff00ff, 0xffff00, 0x00ff00]
|
||||
colors = [0xFF00FF, 0xFFFF00, 0x00FF00]
|
||||
|
||||
fruitjam = FruitJam()
|
||||
fruitjam.neopixels.brightness = 0.1
|
||||
fruitjam.neopixels.fill(0xff00ff)
|
||||
fruitjam.neopixels.fill(0xFF00FF)
|
||||
|
||||
time.sleep(2)
|
||||
fruitjam.neopixels.fill(0x000000)
|
||||
|
|
|
|||
Loading…
Reference in a new issue