Here's a simple example showing how to blink the on board NeoPixel of either the Feather ESP32 V2 or the QT PY ESP32 Pico. It covers addings a library file, neopixel.mpy, as well as editting code.py directly in the browser.
Now click the lib folder link to navigate into the /lib folder.
We need to navigate first, since uploaded files will go into the current directory location.
Navigate to where you've downloaded the CircuitPython Library Bundle and select the neopixel.mpy file.
Then click OK, or Open, or whatever your file window shows.
Edit code.py
Follow these steps to write a simple NeoPixel blink example and save it as code.py so it will run automatically.
Here's the simple example code used:
import time import board import neopixel pixels = neopixel.NeoPixel(board.NEOPIXEL, 1) while True: pixels.fill(0xADAF00) time.sleep(1) pixels.fill(0) time.sleep(1)
Replace the contents of code.py with the code listing shown (can copy from above).
Make sure it matches what is shown - no indent errors, etc. Then click the Save button.
Text editor powered by tinymce.