Skip to content

Instantly share code, notes, and snippets.

View staswright's full-sized avatar

Stas T Wright staswright

View GitHub Profile
@staswright
staswright / fire.py
Last active January 23, 2018 18:01 — forked from tdicola/fire.py
Changes to CircuitPython 2.2.0 for Youtube video: https://www.youtube.com/watch?v=OJlYxnBLBbk & Adapted to the Featherwing 4x8.
### Updating the Code to adjust to changes with the new version of CircuitPython 2.2.0 ###
#import machine -- No longer used by the neopixel MicroPython Libraries.
# https://circuitpython.readthedocs.io/projects/neopixel/en/latest/
import board
import neopixel
#import uos -- no longer "uos", just "os".
import os
#PIXEL_PIN = 15 (NeoPixel no longer uses machine.Pin(PIXEL_PIN))
PIXEL_PIN = board.GPIO15