This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |