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() {
strip.begin();
strip.show();
strip.setBrightness(BRIGHTNESS);
}
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 1.8.51.0) (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