https://learn.adafruit.com/adafruit-qt- ... -scan-test
includes the following lines:
Code: Select all
void setup() {
Serial.begin(115200);
// Wait for Serial port to open
while (!Serial) {
delay(10);
}
delay(500);
Serial.println("Adafruit I2C Scanner");
On a QT-PY ESP32-S2 connected by JST to a p/n 5640 clock generator, the code never exits the while loop for some reason(Arduino IDE 2.0.1) and nothing appears in the serial monitor window. Slowing the while loop does not work to fix the problem. Commenting out the while loop allows the code to execute normally and return the correct i2C address of the clock generator to the serial monitor. Why does the while loop fail?