Skip to content

Commit 9e872fb

Browse files
authored
Merge pull request #2928 from adafruit/rp2350_videosynth
add metro esp32-s2 factory test
2 parents 1e653e3 + 2a2ff87 commit 9e872fb

File tree

3 files changed

+40
-7
lines changed

3 files changed

+40
-7
lines changed

TinyPod/code.py renamed to BLE_Apple_Watch_Controller/code.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@
8585
# while BLE connected
8686
while ble.connected:
8787
position = encoder.position
88-
# if the encoder is turned to the right
89-
if position > last_position:
90-
kbd.send(Keycode.RIGHT_ARROW)
91-
# if the encoder is turned to the left
92-
if position < last_position:
93-
kbd.send(Keycode.LEFT_ARROW)
94-
# reset encoder position
9588
if position != last_position:
89+
# if the encoder is turned to the right
90+
if position > last_position:
91+
kbd.send(Keycode.RIGHT_ARROW)
92+
# if the encoder is turned to the left
93+
if position < last_position:
94+
kbd.send(Keycode.LEFT_ARROW)
95+
# reset encoder position
9696
last_position = position
9797
print(f"Position: {position}")
9898
for b in range(5):

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)