We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fe3ed8 commit b9e8e3cCopy full SHA for b9e8e3c
ports/nrf/common-hal/neopixel_write/__init__.c
@@ -206,7 +206,11 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
206
// the LEDs and if you are not using the EasyDMA feature.
207
__disable_irq();
208
209
+#ifdef NRF52840_XXAA
210
NRF_GPIO_Type* port = ( digitalinout->pin->port ? NRF_P1 : NRF_P0 );
211
+#else
212
+ NRF_GPIO_Type* port = NRF_P0;
213
+#endif
214
uint32_t pinMask = ( 1UL << digitalinout->pin->pin );
215
216
uint32_t CYCLES_X00 = CYCLES_800;
0 commit comments