The neopixel dots lights are not lighting up.
I set up digital out as from the example on https://learn.adafruit.com/adafruit-cir ... n-neopixel
I changed the below line to control the external neopixel dots on pad A7.
pixels = neopixel.NeoPixel(board.D1, 40, brightness=.2)
I've done this before and it worked. I had the same trouble trying to get the pins to work and eventually they did.
The file system appeared to be corrupted so I erased, reloaded the bootloader and updated the code.py. So its a fresh flash. Green status led is lit.
There is power to the lights but it doesn't seem to receive control messages. Do I have to activate the pin somehow? Is there any way to tell me the digital pin is working?
There is nothing lighting up and I've tried and tested everything.. This board sucks again.
Playground Express Python Neopixel Dots
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- danhalbert
- Posts: 4688
- Joined: Tue Aug 08, 2017 12:37 pm
Re: Playground Express Python Neopixel Dots
When you erased CIRCUITPY, did you put back the library bundle in lib/ ? You need the neopixel library to use that example. See https://learn.adafruit.com/adafruit-cir ... -libraries. Also, try connecting to the REPL so you can see the error messages as text: https://learn.adafruit.com/adafruit-cir ... al-console
You can designate the pin as `board.A7` to match the board markings. It's just a pin designation and does not imply analog vs. digital.
Are you powering the external neopixels with 5V or 3.3V?
You can designate the pin as `board.A7` to match the board markings. It's just a pin designation and does not imply analog vs. digital.
Are you powering the external neopixels with 5V or 3.3V?
- udenjoe
- Posts: 13
- Joined: Thu Mar 28, 2013 12:18 am
Re: Playground Express Python Neopixel Dots
I'll have to try REPL to look for errors.
I've done everything else you've suggested.
Question about referencing the pin outs: Do we have to signify board.A#? Will board.D# work?
Thank you for the reply!
I've done everything else you've suggested.
Question about referencing the pin outs: Do we have to signify board.A#? Will board.D# work?
Thank you for the reply!
- danhalbert
- Posts: 4688
- Joined: Tue Aug 08, 2017 12:37 pm
Re: Playground Express Python Neopixel Dots
Aha, looking at the pin list, there is no "D0" for CircuitPython. (On Arduino, you can use 0 (not D0) or A7). So definitely change that if you haven't already; otherwise it's an error. I'll make sure the Learn Guide is clear on that.
The actual pin names are here: https://github.com/adafruit/circuitpyth ... ess/pins.c. You'll see that some names are aliases for others.
Also once you have access to the repl you can do:
The actual pin names are here: https://github.com/adafruit/circuitpyth ... ess/pins.c. You'll see that some names are aliases for others.
Also once you have access to the repl you can do:
Code: Select all
>>> import board
>>> dir(board)
['A0', 'SPEAKER', 'A1', 'A2', 'A3', 'A4', 'SCL', 'A5', 'SDA', 'A6', 'RX', 'A7', 'TX', 'LIGHT', 'A8', 'TEMPERATURE', 'A9', 'BUTTON_A', 'D4', 'BUTTON_B', 'D5', 'SLIDE_SWITCH', 'D7', 'NEOPIXEL', 'D8', 'D13', 'REMOTEIN', 'IR_RX', 'REMOTEOUT', 'IR_TX', 'IR_PROXIMITY', 'MICROPHONE_CLOCK', 'MICROPHONE_DATA', 'ACCELEROMETER_INTERRUPT', 'ACCELEROMETER_SDA', 'ACCELEROMETER_SCL', 'SPEAKER_ENABLE', 'SCK', 'MOSI', 'MISO', 'FLASH_CS']
>>> board. # press the TAB key after "." and you'll see these choices printed out:
A0 SPEAKER A1 A2
A3 A4 SCL A5
SDA A6 RX A7
TX LIGHT A8 TEMPERATURE
A9 BUTTON_A D4 BUTTON_B
D5 SLIDE_SWITCH D7 NEOPIXEL
D8 D13 REMOTEIN IR_RX
REMOTEOUT IR_TX IR_PROXIMITY MICROPHONE_CLOCK
MICROPHONE_DATA ACCELEROMETER_INTERRUPT
ACCELEROMETER_SDA ACCELEROMETER_SCL
SPEAKER_ENABLE SCK MOSI MISO
FLASH_CS
Please be positive and constructive with your questions and comments.