NeoController
NeoController copied to clipboard
Issues controlling the NEO Pixel
Hi,
Awesome project!
I was wondering of you could help me understand why I can't get the neo pixel to do anything. The code executes fine and RTT logs messages. The board is custom and based on the NRF52832. The board and neo pixel (WS2812b) works with other Arduino based sketches that allow me to fully control the neo pixel without issue.
I have defined the following in sdk_config:
#define NOT_USED_PIN1 3
#define NOT_USED_PIN2 6
#define SCL_PIN 9
#define SDA_PIN 10
#define D5_PIN 11
All of the above are not connected to anything physically.
And only modified the pin number below in main:
#elif defined(BOARD_PCA10040)
#define neopixel_pin 8 /**< Neopixel pin number. */
#endif
Unfortunately, I come from a hardware background so the code is a little hard for me to follow.
The RTT output looks good:
00> <info> app_timer: RTC: initialized.
00> <info> app: Neopixel Controller Application started.
00> <info> app: Fast advertising started.
00> <info> app: Connected.
00> <info> app: command rerceived!
00> <info> app: commands[0] = 255;
00> <info> app: commands[1] = 0;
00> <info> app: commands[2] = 0;
Have i missed something obvious?
Thanks in advance! Ace