You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.
parser = argparse.ArgumentParser(description = 'Example sketch that controls an LED strip via Spacesb. It uses the LED Strip Python library for Adafruit\'s LPD8806 LED strips.')
# Define the led strip length optional parameter
parser.add_argument('-l', '--leds', '--pixels',
nargs = 1, type = int, default = 32,
help = 'Length of led strip leds or pixels')
# Read all command line parameters
args = parser.parse_args()
def main():
# initialize spi and leds objects
spidev = file("/dev/spidev0.0", "wb") # ref to spi connection to the led bar