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() {}
Набор LAFVIN Super Starter для Arduino R3 Mega2560 Mega328 Nano с подробным руководством - совместим с Arduino IDE
11 Review
Чехол GeeekPi Raspberry Pi для кластера с вентилятором охлаждения и тепловыми трубками для Pi 4 Model B, 3 Model B+ и 3/2 Model B
11 Review
🌐 MCIGICM 2-х канальный модуль реле DC 5V: оптоизолированный модуль с низким уровнем срабатывания для Arduino UNO R3, DSP, ARM, PIC, AVR, STM32, Raspberry Pi
11 Review
Gikfun Screw Shield Expansion Board: Дополнение Arduino UNO R3 с помощью EK7007 Add-On
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
uxcell 3.5" HDD Screw Black 200pcs for Computer PC Case - Flat Phillips Head - 6#-32 - Hard Drive Fasteners
10 Review
🖥️ Helifouner 450-Piece Computer Standoffs Spacer Screws Kit: Ideal for Hard Drive, Motherboard, Fan, Power Graphics & Computer Cases
10 Review