Ws2812 Strip on standalone Atmega328p

Hi All,

I am working on a standalone board with an Atmega328P. I have an RGB strip (with WS2812 LEDs) connected to pin PB5. The problem I am facing is when using the Adafruit NeoPixel Library.

The library seems to support this, but I can't figure out how to set it that it uses PB5 (which doesnt have a pin number on an Arduino).

Anyone know what to define or set so that the library will use pin PB5?

Best regards

Is PB5 not mapped to Arduino pin 13 ?

You are right! Thank you :smiley: That works.

But out of curiosity, would there be a way to use it on pins not mapped in Arduino?

You could use direct port manipulation so that you do not need to refer to an Arduino pin number

Which pins would not be mapped for a 328P?