Skip to content

Commit 561b64a

Browse files
committed
kb2040 neoswirl
1 parent 3df4f11 commit 561b64a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#include "Adafruit_TestBed.h"
2+
3+
extern Adafruit_TestBed TB;
4+
5+
void setup() {
6+
Serial.begin(115200);
7+
//while (!Serial) { yield(); delay(10); } // wait till serial port is opened
8+
delay(100); // RP2040 delay is not a bad idea
9+
10+
Serial.println("KB2040 self-tester!");
11+
12+
TB.neopixelPin = 17;
13+
TB.neopixelNum = 1;
14+
15+
TB.begin();
16+
}
17+
18+
uint8_t x = 0;
19+
20+
void loop() {
21+
TB.setColor(TB.Wheel(x++));
22+
delay(10);
23+
}

0 commit comments

Comments
 (0)