[Microbit-Python] Driving Neopixels with Pxx other than P0, P1, P2?

Nevil Hunt nevil.hunt at hotmail.co.uk
Tue Dec 13 04:40:16 EST 2016


Hi Damien,


Thanks for the suggestion. I gave it a go but unfortunately it didn't bring it to life.

I tried P8,12,13,14,15,16 and none of them drive the NeoPixels.

If enabling NeoPixels on these additional Pxx pins would just be a simple s/w change it would be good to have as the P0,P1,P2 are precious resources.

Either way this is the first time I've had a play with NeoPixels and they are good fun!


Cheers,


Nevil


________________________________
From: Microbit <microbit-bounces+nevil.hunt=hotmail.co.uk at python.org> on behalf of Damien George <damien.p.george at gmail.com>
Sent: 13 December 2016 02:22
To: For Pythonic MicroBit related discussions
Subject: Re: [Microbit-Python] Driving Neopixels with Pxx other than P0, P1, P2?

Hi Nevil,

Neopixels should work on all pins.... make sure the pin is not being
used for something else (eg display), then try doing write_digital on
that pin before using it as a neopixel output.

Cheers,
Damien.

On 13 December 2016 at 06:32, Nevil Hunt <nevil.hunt at hotmail.co.uk> wrote:
> Hi,
>
>
> I've just got the micro:bit driving the Adafruit Neopixel Feather board
> using the example Python code in the 'read-the-docs' and it works well! (but
> I might need to buy a new pair of sunglasses!)
>
>
> The 'read-the-docs' says it can use P0, P1 or P2 which I've checked all
> work. I then wondered if it would work with other Pxx such as P8, P12 or P16
> but it doesn't.
>
>
> Since driving Neopixels is entirely digital is there any fundamental reason
> why the use of other Pxx couldn't one day be enabled?
>
>
>
> Cheers,
>
>
> Nevil
>
>
> _______________________________________________
> Microbit mailing list
> Microbit at python.org
> https://mail.python.org/mailman/listinfo/microbit

Microbit Info Page - Python<https://mail.python.org/mailman/listinfo/microbit>
mail.python.org
The MicroBit is a small programmable device for children created by the BBC (in partnership with various other organisations, such as the PSF).



>
_______________________________________________
Microbit mailing list
Microbit at python.org
https://mail.python.org/mailman/listinfo/microbit

Microbit Info Page - Python<https://mail.python.org/mailman/listinfo/microbit>
mail.python.org
The MicroBit is a small programmable device for children created by the BBC (in partnership with various other organisations, such as the PSF).



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20161213/ebe4b73a/attachment-0001.html>


More information about the Microbit mailing list