Skip to content

Commit a983b6a

Browse files
committed
format
1 parent 58926b5 commit a983b6a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

adafruit_fruitjam/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class FruitJam:
3636
def __init__(self):
3737
self.peripherals = Peripherals()
3838

39-
4039
@property
4140
def neopixels(self):
4241
return self.peripherals.neopixels

adafruit_fruitjam/peripherals.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
2727
"""
2828

29+
import adafruit_tlv320
2930
import audiobusio
3031
import board
3132
import displayio
@@ -34,7 +35,6 @@
3435
import supervisor
3536
from digitalio import DigitalInOut, Direction, Pull
3637
from neopixel import NeoPixel
37-
import adafruit_tlv320
3838

3939
__version__ = "0.0.0+auto.0"
4040
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FruitJam.git"
@@ -88,6 +88,7 @@ class Peripherals:
8888
neopixels (NeoPxiels): The NeoPixels on the Fruit Jam board.
8989
See https://circuitpython.readthedocs.io/projects/neopixel/en/latest/api.html
9090
"""
91+
9192
def __init__(self):
9293
self.neopixels = NeoPixel(board.NEOPIXEL, 5)
9394

examples/fruitjam_peripherals.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2025 Tim Cocks for Adafruit Industries
22
#
33
# SPDX-License-Identifier: MIT
4+
import time
5+
46
import displayio
57
import supervisor
68
from audiocore import WaveFile
7-
import time
89

910
from adafruit_fruitjam import FruitJam
1011

11-
12-
colors = [0xff00ff, 0xffff00, 0x00ff00]
12+
colors = [0xFF00FF, 0xFFFF00, 0x00FF00]
1313

1414
fruitjam = FruitJam()
1515
fruitjam.neopixels.brightness = 0.1
16-
fruitjam.neopixels.fill(0xff00ff)
16+
fruitjam.neopixels.fill(0xFF00FF)
1717

1818
time.sleep(2)
1919
fruitjam.neopixels.fill(0x000000)

0 commit comments

Comments
 (0)