Loading
Loading
IoT Lab content is currently available in Arabic only. We're working on an English version.
عرض بالعربية →Draw circles, lines, and tiny icons.
Like the LCD: VCC to 5V or 3.3V. SDA to A4 and SCL to A5.
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display(128, 64, &Wire, -1);
void setup() {
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(10, 20);
display.println("IoT Lab");
display.display(); // هذا السطر ضروري لإظهار التعديلات
}
void loop() {}Forgetting the display.display() command at the end of your code, leaving the screen black even though the code and wiring are correct.