Archive for Samuel : Samuel 의 기록 보관소
// #include #include // I2C 통신을 위한 라이브러리// #include // I2C LCD 라이브러리// 0x27// LCD 객체 생성 (주소 0x3F, LCD 크기 16x2)// LiquidCrystal_I2C lcd(0x3F, 16, 2);void setup() { Wire.begin(); Serial.begin(9600); while (!Serial); // Leonardo: wait for serial monitor Serial.println("\nI2C Scanner");}void loop() { int nDevices = 0; Serial.println("Scanning..."); for (byte address = 1; addres..