I don't know where I can see the compiler settings or if I am completely wrong and the problem is something different.īecause of their timing requirements there are two main ways used to drive WS2812 type LEDs (the parts that Adafruit brand as Neopixels). I think that this is related to a timing problem because of the different compilers, but I do not know how I fix this. It works like with the mbed compiler, but there are intensity changes between the different LEDs. I tried increasing my compiler's optimization level and discovered that with Level 3 optimization it almost works perfectly. The LEDs are turned on, but only with white light and I cannot turn them off again or control them in any way.
NRF SEGGER EMBEDDED STUDIO CODE
I tried using the same code with the NRF SDK (looks like the same because the mbed library contains the same gpio libraries as the SDK ) compiling it on Segger Embedded Studio and get very strange behavior. The correct amount of LEDs can be turned on and with different colors. I found an easy implementation (RedBearNano_NeoPixels) that works perfectly with my board if I compile the program with the mbed compiler. I am currently trying to control a Adafruit Neopixel strip with the NRF51 Dongle. Timing problem after compiling working mbed program with Segger Embedded Studio
![nrf segger embedded studio nrf segger embedded studio](https://cdn-ak.f.st-hatena.com/images/fotolife/i/irieda/20190517/20190517183539.png)
To start a new conversationĤ years, 4 months ago. Important changes to forums and questionsĪll forums and questions are now archived.