Difference between revisions of "ESP32 096 OLED"
(Created page with "<pre> #include <Arduino.h> #include <Wire.h> #include <U8g2lib.h> U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, →clock=: 22, →data=: 21, →reset=: U8X8_PIN_NONE)...") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | [[Ideaspark-ESP32-0.96-OLED_Board| retour]]<br> | ||
| + | |||
| + | |||
<pre> | <pre> | ||
#include <Arduino.h> | #include <Arduino.h> | ||
Latest revision as of 18:14, 10 December 2024
#include <Arduino.h>
#include <Wire.h>
#include <U8g2lib.h>
U8G2_SSD1306_128X64_NONAME_F_SW_I2C
u8g2(U8G2_R0, /* clock=*/ 22, /* data=*/ 21, /* reset=*/ U8X8_PIN_NONE); // All Boards without Reset of the Display
void setup() {
// put your setup code here, to run once:
u8g2.begin();
}
void loop() {
// put your main code here, to run repeatedly:
u8g2.clearBuffer();
u8g2.setFont(u8g2_font_7x14B_tr);
u8g2.drawStr(0,10,"Hello,ideaspark");
u8g2.drawStr(0,30,"Hello,Seeed");
u8g2.drawStr(0,50,"Hello,Studio");
u8g2.drawStr(0,70,"Hello,Word");
u8g2.sendBuffer();
delay(1000);
}