// Question:
// Does the ESP32 give a warning,
// when there is a shortcircuit on the I2C bus ?
// Answer:
// No.
#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27
#define LCD_COLUMNS 20
#define LCD_LINES 4
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
void setup()
{
Serial.begin(115200);
Serial.println("------------------------------------");
Serial.println("Test a short circuit on the I2C bus.");
Serial.println("Use the switches.");
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Short Circuit ?");
}
void loop()
{
lcd.setCursor(0, 1);
lcd.print(millis());
delay(250);
}
Loading
esp32-devkit-c-v4
esp32-devkit-c-v4
UP = Short circuit SDA to SCL
UP = Short circuit SDA to GND
UP = Short circuit SCL to GND