Skip to content

Nano 33 BLE NeoMethods

Michael Miller edited this page Apr 5, 2023 · 7 revisions

The Nano 33 BLE (Sense) uses a NRF52840 chip. Due to the Bluetooth features of this board, a software bit bang method cannot be used as it would not provide a consistent and timely pulse as required by the NeoPixels.

All methods for the NRF52x platform will follow this template for the methods name. The LED names are the same from the simple names and will not be listed in full below as we will focus on the hardware details on this page.

"NeoNrf52x<insert hardware detail><insert LED name>Method"

PWM

These methods use PWM DMA hardware support to send data to the NeoPixels. Thus this method uses very little CPU for actually sending the data to NeoPixels but it requires an extra buffer for hardware to read from. This extra buffer is 16x the size of the primary buffer due to the requirements of the PWM DMA hardware as it represents each bit to send using a 16-bit value. These methods support any available pin.

  • Pwm0 - Uses PWM peripheral channel 0, an example would be NeoNrf52xPwm0Ws2812xMethod.
  • Pwm1 - Uses PWM peripheral channel 1, an example would be NeoNrf52xPwm1Ws2812xMethod.
  • Pwm2 - Uses PWM peripheral channel 2, an example would be NeoNrf52xPwm2Ws2812xMethod.
  • Pwm3 - Uses PWM peripheral channel 3, an example would be NeoNrf52xPwm3Ws2812xMethod.
  • PwmN - Uses PWM peripheral but defines the channel at runtime as a constructor argument, an example would be NeoNrf52xPwmNWs2812xMethod. The PWM channel to use is defined at runtime as an argument on the NeoPixelBus constructor.

Note: The Pwm2 is the default PWM channel used when using the standard method names.

Clone this wiki locally