Neopixel Library Error: HAL_Pin_Map

(I submitted this an issue on Github, but I thought I’d post the solution here in case anyone else runs into this)

I’m using an Argon on DeviceOS 5.0, and when I compile the neopixel library, I get the following error:

lib/neopixel/src/neopixel.cpp:67:30: error: 'HAL_Pin_Map' was not declared in this scope; did you mean 'Hal_Pin_Map'?

I fixed the issue by changing line 67 from
NRF5x_Pin_Info* PIN_MAP2 = HAL_Pin_Map();
to
NRF5x_Pin_Info* PIN_MAP2 = Hal_Pin_Map();

I believe the platform id isn’t the issue so I’m thinking it’s the Device OS version. Until the library is updated, this resolves the issue

Rob

1 Like

Thanks for sharing this, Rob!

1 Like