9. Output devices
THIS WEEK GROUP ASSIGNMENT(click the title)
Idea
I wanted to try to work with neopixels so with the PCB i designed the previous week, elcetronics week, I connected the neopixels with it
I soldered cables to mi neopixels and then conected the cables to the pins conected to the xiao respectively ground with ground voltage with voltage and then the signal pin

having that done I found a programm to make a rainbow effect using the leds and this is the code i used in arduino
#include
#ifdef __AVR__
#include
#endif
#define PIN 2
#define NUMPIXELS 12
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
#define DELAYVAL 500
void setup() {
pixels.begin();
}
void loop() {
pixels.rainbow (0,1,150,100);
pixels.show();
}
and this is how it looks

conclusion
What i made whas really simple, conect the neopixels to my PCB, but the code part was a little bit more difficult as i had to ask for help and before finding the code I made various unsuccesful attemps to make the leds work, and i am still not completly sure how they work but i think i am gradually understanding a bit more how proggraming works.