Skip to content

Commit dc90899

Browse files
committed
add metro esp32-s2 factory test
1 parent e4369d2 commit dc90899

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
File renamed without changes.

Factory_Tests/Metro_ESP32S2_FactoryTest/.feather_esp32s2.test.only

Whitespace-only changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// SPDX-FileCopyrightText: 2022 Limor Fried for Adafruit Industries
2+
//
3+
// SPDX-License-Identifier: MIT
4+
5+
#include <Arduino.h>
6+
#include <Adafruit_NeoPixel.h>
7+
#include "Adafruit_TestBed.h"
8+
9+
extern Adafruit_TestBed TB;
10+
11+
void setup() {
12+
Serial.begin(115200);
13+
// while (! Serial) delay(10);
14+
15+
delay(100);
16+
17+
TB.neopixelPin = PIN_NEOPIXEL;
18+
TB.neopixelNum = 1;
19+
TB.begin();
20+
TB.setColor(WHITE);
21+
}
22+
23+
uint8_t j = 0;
24+
25+
void loop() {
26+
27+
if (j % 10 == 0) {
28+
TB.printI2CBusScan();
29+
}
30+
TB.setColor(TB.Wheel(j++));
31+
delay(100);
32+
return;
33+
}

0 commit comments

Comments
 (0)