Hello there. I am trying to have some fun with xiao and circuit python. I am running a Neopixel example from adafruit bundle and getting the following serial output:
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 6.0.0 on 2020-11-16; Seeeduino XIAO with samd21g18
>>> uto-reload is ooD
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'uto' is not defined
>>> Adto-reload is ooD
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'Adto' is not defined
>>>
>>> Traceback (most 1,
... Na: na
...
... Adto-reload is ooD
...
... Traceback (most <s"1, <
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>> Na>>raceback (most 1,
that then evolves to pretty funny things:
SyntaxError: invalid syntax
>>> TdTTraria>>i>>>T" TTnrTr>l>T>>rraTTra>>rr rTras>>
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>>
>>> TtT>>rTTc 1Ter>>>TnrorrTr
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>> TrdTTraria>>i>>>T TTnrTr>l>T>>rraTTra>>rr rTras>>
The code I am trying to run is the following:
# This example shows how to create a single pixel with a specific color channel
# order and blink it.
# Most NeoPixels = neopixel.GRB or neopixel.GRBW
# The 8mm Diffused NeoPixel (PID 1734) = neopixel.RGB
import time
import board
import neopixel
# Configure the setup
PIXEL_PIN = board.D1 # pin that the NeoPixel is connected to
ORDER = neopixel.RGB # pixel color channel order
COLOR = (100, 50, 150) # color to blink
CLEAR = (0, 0, 0) # clear (or second color)
DELAY = 0.25 # blink rate in seconds
# Create the NeoPixel object
pixel = neopixel.NeoPixel(PIXEL_PIN, 1, pixel_order=ORDER)
# Loop forever and blink the color
while True:
pixel[0] = COLOR
time.sleep(DELAY)
pixel[0] = CLEAR
time.sleep(DELAY)
I have the library in place, its version matches the circuit python version. The import itself is successful, as far as I can say the problem appears on line 17.
The question I have is, why I am getting this weird kind of output? There might be some wrong with the library, but the output like this is useless. Am I doing something wrong?
Google is not very helpful…
Any help appreciated!