initial commit
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
#include <Adafruit_CircuitPlayground.h>
|
||||
|
||||
void setup() {
|
||||
CircuitPlayground.begin();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
CircuitPlayground.clearPixels();
|
||||
|
||||
delay(500);
|
||||
|
||||
CircuitPlayground.setPixelColor(0, 255, 0, 0);
|
||||
CircuitPlayground.setPixelColor(1, 128, 128, 0);
|
||||
CircuitPlayground.setPixelColor(2, 0, 255, 0);
|
||||
CircuitPlayground.setPixelColor(3, 0, 128, 128);
|
||||
CircuitPlayground.setPixelColor(4, 0, 0, 255);
|
||||
|
||||
CircuitPlayground.setPixelColor(5, 0xFF0000);
|
||||
CircuitPlayground.setPixelColor(6, 0x808000);
|
||||
CircuitPlayground.setPixelColor(7, 0x00FF00);
|
||||
CircuitPlayground.setPixelColor(8, 0x008080);
|
||||
CircuitPlayground.setPixelColor(9, 0x0000FF);
|
||||
|
||||
delay(5000);
|
||||
}
|
||||
Reference in New Issue
Block a user