Can't seem to get a single piece of code to work

Hi everyone,

New to arduinos and coding but liking it so far, the issue (quite major) than im having is a can run the strandtest fine but if I then try to run say Colortheatre but coding myself nothing ever works, please show me the obvious mistake i am making haha.

Here is the code apologies if it isn't in the correct formatting.

#include <Adafruit_NeoPixel.h>
#include <rp2040_pio.h>

#define LED_PIN 4
#define LED_COUNT 16
#define BRIGHTNESS 200

Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_RGB + NEO_KHZ800);

uint32_t color1 = strip.Color(0, 255, 0);
uint32_t color2 = strip.Color(0, 0, 255);

void setup() {


void loop() {

  theaterChase(strip.Color(127, 127, 127), 50); // White, half brightness
  theaterChase(strip.Color(127,   0,   0), 50); // Red, half brightness
  theaterChase(strip.Color(  0,   0, 127), 50); // Blue, half brightness
  theaterChaseRainbow(50); // Rainbow-enhanced theaterChase variant

Here is the error message:
Arduino: 1.8.16 (Windows Store (Windows 10), Board: "Arduino Uno"

In file included from C:\Users\joshi\AppData\Local\Temp\arduino_modified_sketch_114167\strandtest.ino:2:0:

C:\Users\joshi\OneDrive\Documents\Arduino\libraries\Adafruit_NeoPixel/rp2040_pio.h:9:10: fatal error: hardware/pio.h: No such file or directory

#include "hardware/pio.h"


compilation terminated.

exit status 1

Error compiling for board Arduino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Thanks in advance

Which Arduino board are you using ?

And which Arduino board did you select?

Sorry using the arduino UNO R3 Arduino Compatible IDE ATMEGA328 CH340G with a NeoPixel 44mm ring 16 Bit LED Ring RGB 5050 WS2812B WS2812

And you selected that board to upload to, correct?

If you did select the correct board, then could you copy the entire error from the error window and post it here, in code tags?

Have you tried removing and adding back the neopixel library?

What's that for?

theaterChase shows up in the strand test example - it's not in the library. You will need to add the function to your own code. And drop the pi 2040 stuff.

So that means your post does not belong in this section as installation and troubleshooting section is NOT about your project.
So therefore @joshyboy95 i have moved it here.

I would buy one of those starter kits on Amazon that comes with an Uno and a bunch of tutorials, you just drop the code from the disc and watch how it works after you connect each project. Then go back and try and understand how the code works and looks etc. At least out the gate it gives you some clues that gives one a leg up ....

Simon monk does done good books on Arduino. Helped me a lot when I got started .