# Beetle ESP32 Microcontroller not accepting Adafruit NeoPixel Arduino Library

**URL:** <https://forum.core-electronics.com.au/t/beetle-esp32-microcontroller-not-accepting-adafruit-neopixel-arduino-library/11130>\
**Category:** Uncategorized\
**Created:** [23 August 2021 08:15 UTC](https://forum.core-electronics.com.au/t/beetle-esp32-microcontroller-not-accepting-adafruit-neopixel-arduino-library/11130 "2021-08-23T08:15:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex18979](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Alex18979](https://forum.core-electronics.com.au/u/Alex18979)\
**Post date:** [23 August 2021 08:15 UTC](https://forum.core-electronics.com.au/t/beetle-esp32-microcontroller-not-accepting-adafruit-neopixel-arduino-library/11130/1 "2021-08-23T08:15:38Z")

</div>

Hi all,

I’m trying to use an Adafruit Neopixel with my new Beetle ESP32 Microcontroller however I’m getting this error message:

Arduino: 1.8.15 (Windows 10), Board: “FireBeetle-ESP32, 80MHz, 921600”  
In file included from C:\Users\Alex’s laptop\Documents\Arduino\Beetle-RGB-LED\Beetle-RGB-LED.ino:2:0:  
C:\Users\Alex’s laptop\Documents\Arduino\libraries\Adafruit\_NeoPixel/rp2040\_pio.h:9:26: fatal error: hardware/pio.h: No such file or directory  
compilation terminated.  
exit status 1  
Error compiling for board FireBeetle-ESP32.

 ![2021-08-23 (7)](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/5/51c29edfa2c9ca9e120ac06279fc86b4246b611e.png)  
I have downloaded the library and it’s installed and all that jaz.

Can I actually use Neopixels with the Beetle or do I need to find another RGB LED?

Kind Regards,  
Alex

---

<div class="post-metadata">

**Author:** ![Liam120347](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam120347/32/5003_2.png) [@Liam120347](https://forum.core-electronics.com.au/u/Liam120347)\
**Post date:** [23 August 2021 08:25 UTC](https://forum.core-electronics.com.au/t/beetle-esp32-microcontroller-not-accepting-adafruit-neopixel-arduino-library/11130/2 "2021-08-23T08:25:10Z")

</div>

Hey Alex,

It looks like in the second line you are trying to import a library for the RP2040, a different chip used in the [Raspberry Pi Pico](https://core-electronics.com.au/raspberry-pi-pico.html). No worries though, the library will still be able to work perfectly fine.  
And taking a look through your code it doesn’t look like you reference it either.

PS: here is the repo for the specific library you are using: [GitHub - adafruit/Adafruit\_NeoPixel: Arduino library for controlling single-wire LED pixels (NeoPixel,](https://github.com/adafruit/Adafruit_NeoPixel)

PPS: If you end up grabbing one of the [RP2040 based microcontrollers](https://core-electronics.com.au/search/?q=rp2040) definitely check out the PIO features that Raspberry Pi have pre-made

---

<div class="post-metadata">

**Author:** ![Alex18979](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Alex18979](https://forum.core-electronics.com.au/u/Alex18979)\
**Post date:** [24 August 2021 21:08 UTC](https://forum.core-electronics.com.au/t/beetle-esp32-microcontroller-not-accepting-adafruit-neopixel-arduino-library/11130/3 "2021-08-24T21:08:40Z")

</div>

That worked! Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [26 August 2021 01:37 UTC](https://forum.core-electronics.com.au/t/beetle-esp32-microcontroller-not-accepting-adafruit-neopixel-arduino-library/11130/4 "2021-08-26T01:37:03Z")

</div>

Hey Alex,

Glad to hear you got it working! I’d be keen to see what you are doing with the project, those Beetles are amazing little boards 😃

Liam.
