Codey OnlineArduino- & ESP32-Komponentenbibliothek › OLED Display 0.91 inch
OLED Display 0.91 inch
Displays

OLED Display 0.91 inch

128x32 SSD1306

Breite: 40.1 mm

Pinbelegung — OLED Display 0.91 inch

Pin Signal Beschreibung
SDA SDA top left through-hole header pin
SCL SCL second through-hole header pin on left edge
VCC power third through-hole header pin on left edge
GND ground bottom left through-hole header pin

Beispielschaltplan — OLED Display 0.91 inch

Von Nach Kabel
board:A4 x1:SDA green
board:A5 x1:SCL blue
board:5V x1:VCC red
board:GND x1:GND black

Arduino-Beispielcode — OLED Display 0.91 inch

Dieses Beispiel wurde für das arduino-uno geschrieben und kompiliergeprüft. Codey Online passt es für jedes andere unterstützte Board an.

#include <Wire.h>
#include <U8g2lib.h>

// 0.91" OLED modules are commonly SSD1306 128x32 I2C displays.
// Constructor uses the exact wiring: SDA=A4, SCL=A5.
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE);

void setup() {
  Wire.begin();
  u8g2.begin();

  u8g2.clearBuffer();
  u8g2.setFont(u8g2_font_ncenB08_tr);
  u8g2.drawStr(0, 12, "OLED 0.91\" Example");
  u8g2.setFont(u8g2_font_6x10_tr);
  u8g2.drawStr(0, 28, "Hello from Arduino Uno");
  u8g2.sendBuffer();
}

void loop() {
  // Static demo: the message stays on screen.
}

Ähnliche Komponenten

1.28" Round TFT LCD 240x240 (GC9A01, SPI)

1.28" Round TFT LCD 240x240 (GC9A01, SPI)

1602 LCD DISPLAY

1602 LCD DISPLAY

1602 LCD I2C DISPLAY

1602 LCD I2C DISPLAY

8x8 RGB 64 LED Matrix 5V WS2812b

8x8 RGB 64 LED Matrix 5V WS2812b

Bau dein Arduino- oder ESP32-Projekt mit AI

Beschreib einfach, was du bauen willst. Codey Online schreibt den Code, zeichnet den Schaltplan, kompiliert alles und flasht dein Board direkt aus dem Browser.

Kostenlos starten