Loading
Loading
IoT Lab content is currently available in Arabic only. We're working on an English version.
عرض بالعربية →Printing clear messages using only 4 wires.
VCC to 5V, GND to GND. SDA wire connects to pin A4 on the Uno, and SCL to pin A5.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // العنوان غالباً 0x27 أو 0x3F
void setup() {
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0); // العمود 0، الصف 0
lcd.print("Darhous IoT Lab");
}
void loop() {
lcd.setCursor(0, 1);
lcd.print(millis() / 1000);
delay(1000);
}Screen is fully lit or shows black squares but no text? Try turning the small brass screw (Potentiometer) on the back of the module with a screwdriver to adjust the contrast.