#include <Adafruit_NeoPixel.h>
#define LED_PIN 2
// How many NeoPixels are attached to the Arduino?
#define LED_COUNT 16
// Declare our NeoPixel strip object:
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);
#define PI 3.1415926535897932384626433832795
void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
Serial1.println("Hello, Raspberry Pi Pico W!");
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
int time = 0;
strip.
while(true){
delay(100);
Serial1.println((round(255*(abs(cos(2 * time * PI/255)) - cos(2 * time * PI/255))/2) , round(255*(abs(cos(2 * time * PI/255 - PI*2/3)) - cos(2 * time * PI/255 - PI*2/3))/2) , round(255*(abs(cos(2 * time * PI/255 - PI*4/3)) - cos(2 * time * PI/255 - PI*4/3))/2)));
time = 1 + time;
}
// put your main code here, to run repeatedly:
// this speeds up the simulatio
}