Skip to content

Commit b9e8e3c

Browse files
committed
fix nrf52832 build
1 parent 1fe3ed8 commit b9e8e3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/nrf/common-hal/neopixel_write/__init__.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
206206
// the LEDs and if you are not using the EasyDMA feature.
207207
__disable_irq();
208208

209+
#ifdef NRF52840_XXAA
209210
NRF_GPIO_Type* port = ( digitalinout->pin->port ? NRF_P1 : NRF_P0 );
211+
#else
212+
NRF_GPIO_Type* port = NRF_P0;
213+
#endif
210214
uint32_t pinMask = ( 1UL << digitalinout->pin->pin );
211215

212216
uint32_t CYCLES_X00 = CYCLES_800;

0 commit comments

Comments
 (0)