Difference between revisions of "OLED Display 0.96 (SSD1315)"
(→Code Hello World !) |
(→Code Hello World !) |
||
| Line 71: | Line 71: | ||
Grove Base for XIAO <br> | Grove Base for XIAO <br> | ||
XIAO-RA4M1 <br> | XIAO-RA4M1 <br> | ||
| − | OLED Display 0.96 (SSD1308) 128 × 64 pixels, Port <b>I2c</b> (1)<br> | + | OLED Display 0.96 (SSD1308) 128 × 64 pixels, Port <b>I2c</b> (1)<br>✅ |
ou | ou | ||
OLED Display 0.96 (SSD1315) 128 × 64 pixels, Port <b>I2c</b> (2) <br> | OLED Display 0.96 (SSD1315) 128 × 64 pixels, Port <b>I2c</b> (2) <br> | ||
Revision as of 14:47, 31 August 2025
Contents
Grove - OLED Display 0.96 (SSD1315) inches (Seeed-Studio)
Caractéristiques
Dot Matrix 128×64
Monochrome(white)
3.3V/5V compatible
Communication
I2C : Adresse 0x3C
Si votre carte est ATmega328, comme Seeeduino V4.2 et Arduino UNO, vous devez passer à soft I2C lorsque vous utilisez la bibliothèque U8G2.
Ceci n'est pas nécessaire si vous utilisez une carte de développement SAMD.
Images
Tableau
| Seeeduino | Sensor | |
|---|---|---|
|
5V |
Red | |
|
GND |
Black | |
|
SDA |
White | |
|
SCL |
Yellow | |
|
Grove - OLED Display 0.96 inches - | ||
Drivers
SSD1315 chip
Voltage
3.3 ~ 5.5V
Liens externes
www.seeedstudio.com/Grove-OLED-Display-0-96-SSD1315-p-4294.html shop
wiki.seeedstudio.com/Grove-OLED-Display-0.96-SSD1315 wiki
Code Hello World !
Bibliothèque u8g2 https://wiki.myows.top/index.php?title=U8g2_for_Seeeduino_boards#Setup
Grove Base for XIAO
XIAO-RA4M1
OLED Display 0.96 (SSD1308) 128 × 64 pixels, Port I2c (1)
✅
ou
OLED Display 0.96 (SSD1315) 128 × 64 pixels, Port I2c (2)
(1) le texte s'affiche en y sur 0 au lieu de 10
(2) le texte s'affiche en y sur 10, donc correctement
setFlipMode(0) autrement 1,2,3 il bascule de 180° aucune différance
#include <Arduino.h>
#include <U8x8lib.h>
#include <Wire.h>
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // OLEDs without Reset of the Display
void setup(void) {
u8x8.begin();
u8x8.setFlipMode(0); // set number from 1 to 3, the screen word will rotary 180
}
void loop(void) {
u8x8.setFont(u8x8_font_chroma48medium8_r);
u8x8.setCursor(2, 10);
u8x8.print("Hello World!");
}