Despite other reviews and the product listing mentioning that their modified version of the SSD1306 library is required, I wasn't able to get the display to work until I've used the standard libraries Adafruit_SSD1306 and Adafruit_GFX. When using standard libraries, the display works correctly. Superb crisp text and superb build quality. If you want a simple "Hello World" code example, the following example works well with my Arduino Nano BLE: #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX .h>#include <Adafruit_SSD1306.h > #define SCREEN_WIDTH 128 // OLED display width in pixels #define SCREEN_HEIGHT 32 // OLED display height in pixels // Announcement for SSD1306 display connected to I2C (SDA, SCL pins) #define OLED_RESET -1 // reset output # (or -1 if Arduino resets the common pin) Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); void setup() { Serial.begin(9600); // SSD1306_SWITCHCAPVCC = generate internal display voltage of 3.3 V if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // address 0x3C for 128x32 Serial.println(F("SS1306 assignment failed")); Per(;;); // Don't continue, infinite loop } display.clearDisplay(); display.setTextSize(1); // Normal pixel scale 1:1 display.setTextColor(SSD1306_WHITE); // Draw white text display.setCursor(0,0); // start at the top left corner display.cp437(true); // Use full 256 character font 'code page 437' display.println(F("Hello, world!")); display.display();}void loop() {}
Gikfun Screw Shield Expansion Board: Enhance Arduino UNO R3 with the EK7007 Add-On
11 Review
LAFVIN Super Starter Kit for Arduino R3 Mega2560 Mega328 Nano with Detailed Tutorial - Compatible with Arduino IDE
11 Review
55" TV LG OLED55C2RLA 2022 HDR, OLED, dark titanium
38 Review
REXQualis Comprehensive Starter Kit with Arduino MEGA 2560 & Detailed Tutorial for Arduino IDE Compatibility
11 Review
๐ง Premium Repair Replacement Screws & Tools for MacBook Pro Retina 15"/13" - Complete Bottom Case Set
10 Review
M.2 Screw Kit: Easy Mounting for NVMe SSDs on ASUS Motherboards
19 Review
36-Pack Black Rubber PC CPU/Case Fan Screws/Rivets Set for Computer
11 Review
Comprehensive 500pcs Laptop Screw Kit Set for ๐ฉ IBM HP Dell Lenovo Samsung Sony Toshiba Gateway Acer
12 Review