mathertel / DMXSerial

An Arduino library for sending and receiving DMX packets.
BSD 3-Clause "New" or "Revised" License
320 stars 76 forks source link

Changing Neopixel output pin does not work #83

Open particlerain opened 6 months ago

particlerain commented 6 months ago

Hi,

i need to change the output pin of neopixel. I tried editing the defines in ws2812.h, but that does not make any difference and the output pin stays always D12. Lİke changing the pin to D11 below does not have any effect:

#define PIXEL_PORT  PORTB  // Port of the pin the pixels are connected to
#define PIXEL_DDR   DDRB   // Port of the pin the pixels are connected to
#define PIXEL_BIT   3     // Bit of the pin the pixels are connected to

Is there anything hardcoded which i could not detect yet?

NOTE: Also the fps with 50-60 pixels is around 30-40fps. But with 170 Pixels the fps drops to 20-25. Is there any modification that i can do when increasing the pixel count, to stay at 30-40 fps?