Play Red

/* Turn on Optimus Prime's LED eyes */ #include "LEDStrip.h" //The LEDStrip.h library gives your code access to special functions exclusive to the LED Strip LEDStrip pixels = LEDStrip(4,13,12); //Set up the strip by defining how many pixels and which pins of the microchip are used (always 13 and 12 on transformer) void setup(){} void loop() { pixels.setPixel(0,222); //set LED pixel 0 (right eye) to a color value of 222 pixels.setPixel(1,111); //set LED pixel 1 to color 111 pixels.draw(); //send the color values to the LED pixels } //(c)2024 Let's Start Coding. License: www.letsstartcoding.com/bsdlicense