QT Py NeoPixel lights up yellow instead of white

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rreboto
 
Posts: 7
Joined: Fri Nov 02, 2012 4:47 am

QT Py NeoPixel lights up yellow instead of white

Post by rreboto »

Hello,

I am trying out a very simple piece of code with a QT Py ordered within the last week. When this code runs the built-in NeoPixel blinks yellow instead of white. I am able to get just red, just green, and just blue, so all the individual LEDs are fine.

I downloaded CircuitPython 6.3.0 from here: https://circuitpython.org/board/qtpy_m0/

and the adafruit-circuitpython-bundle-6.x-mpy-20210827.zip libraries from here: https://github.com/adafruit/Adafruit_Ci ... e/releases

Any ideas?

Thank you !

Code: Select all

import board
import digitalio
import time

import neopixel

from adafruit_led_animation import color

NEOPIXEL_COUNT = 1

pixels = neopixel.NeoPixel(board.NEOPIXEL, NEOPIXEL_COUNT, auto_write=False)
pixels.brightness = 1.0

# clear the pixel entirely
pixels[0] = color.BLACK
pixels.show()

while True:
    pixels[0] = color.WHITE
    pixels.show()
    time.sleep(0.1)

    pixels[0] = color.BLACK
    pixels.show()
    time.sleep(0.5)

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: QT Py NeoPixel lights up yellow instead of white

Post by tannewt »

Please try the latest 7.0.0 version and post a video if it still doesn't work. That'll make it easier to see what is happening. Thanks!

User avatar
rreboto
 
Posts: 7
Joined: Fri Nov 02, 2012 4:47 am

Re: QT Py NeoPixel lights up yellow instead of white

Post by rreboto »

I will try the latest CircuitPython, but in the meantime I thought I would mention that I get the same yellow instead of white with Arduino C code:

Code: Select all

#include <Adafruit_NeoPixel.h>

#define NEOPIXEL_COUNT 1

Adafruit_NeoPixel pixels(NEOPIXEL_COUNT, PIN_NEOPIXEL);

void setup() {
  pixels.begin();
}

void loop() {
  pixels.setPixelColor(0, pixels.Color(255, 255, 255));
  pixels.show();
}
Thank you.

User avatar
mousethief
 
Posts: 17
Joined: Mon Mar 08, 2021 12:20 pm

Re: QT Py NeoPixel lights up yellow instead of white

Post by mousethief »

This may be the the same as my problem, orange/amber neopixel at (255, 255, 255): viewtopic.php?f=19&t=181314

User avatar
blakebr
 
Posts: 957
Joined: Tue Apr 17, 2012 6:23 pm

Re: QT Py NeoPixel lights up yellow instead of white

Post by blakebr »

This is a WAG.
With the shortage of IC chips the fabricator may have substituted a 'functionally equivalent' device.
It may be necessary to 'tune' the tupple (255,255,255) to make the 'white' look white to the eye.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”