import board
from board import SCL, SDA
import busio
import random
import time

# Import the PCA9685 module.
from adafruit_pca9685 import PCA9685

import adafruit_dotstar

# set the dotstar on the Trinket M0 to shine red.
pixels = adafruit_dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1)
pixels[0] = (0, 0, 0)

# Create the I2C bus interface.
i2c_bus = busio.I2C(SCL, SDA)
# Create a simple PCA9685 class instance.
pca = PCA9685(i2c_bus)
# Set the PWM frequency to 60hz.
pca.frequency = 60

numLedStrands = 16

# set all to max output
def init():
    for i in range(0, numLedStrands):
        pca.channels[i].duty_cycle = 0xFFFF


init()

while True:
    i = 0
