KB2040_FactoryTest.ino
1 // SPDX-FileCopyrightText: 2022 Limor Fried for Adafruit Industries 2 // 3 // SPDX-License-Identifier: MIT 4 5 #include "Adafruit_TestBed.h" 6 7 extern Adafruit_TestBed TB; 8 9 void setup() { 10 Serial.begin(115200); 11 //while (!Serial) { yield(); delay(10); } // wait till serial port is opened 12 delay(100); // RP2040 delay is not a bad idea 13 14 Serial.println("KB2040 self-tester!"); 15 16 TB.neopixelPin = 17; 17 TB.neopixelNum = 1; 18 19 TB.begin(); 20 } 21 22 uint8_t x = 0; 23 24 void loop() { 25 TB.setColor(TB.Wheel(x++)); 26 delay(10); 27 }