The Qwiic OLED Breakout is a versatile and compact display module that utilizes organic light-emitting diode (OLED) technology to provide a high-contrast, high-resolution visual output. This breakout board is designed for easy integration into projects with its I2C communication protocol support, making it ideal for applications requiring a small display with low power consumption. Common applications include wearable devices, handheld instruments, and user interfaces for small-scale projects.
Pin Number | Pin Name | Description |
---|---|---|
1 | GND | Ground, 0V reference for the power supply |
2 | 3.3V | Power supply input, 3.3V |
3 | SDA | I2C Data Line |
4 | SCL | I2C Clock Line |
5 | INT | Interrupt pin (not used in all setups) |
Adafruit_SSD1306
can be used.#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3D // See datasheet for Address; 0x3D for 128x64
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup() {
// Initialize with the I2C addr 0x3D (for the 128x64)
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
Serial.println(F("SSD1306 allocation failed"));
for(;;); // Don't proceed, loop forever
}
display.display();
delay(2000); // Pause for 2 seconds
// Clear the buffer
display.clearDisplay();
// Draw a single pixel in white
display.drawPixel(10, 10, SSD1306_WHITE);
// Show the display buffer on the screen
display.display();
}
void loop() {
// Nothing to do here
}
Q: Can I use the Qwiic OLED Breakout with a 5V system? A: While the display operates at 3.3V, some 5V systems can safely interface with it through level shifters or if the microcontroller's I2C pins are 3.3V tolerant.
Q: How do I change the I2C address? A: The I2C address can sometimes be changed via solder jumpers or switches on the breakout board. Refer to the specific board's datasheet for instructions.
Q: Can I use multiple Qwiic OLED Breakouts on the same I2C bus? A: Yes, if the breakout allows for address reconfiguration, you can have multiple displays with different addresses on the same I2C bus.