OLED Display I2C (4 pins) 1.3 inch – شاشة أو ليد

ر.س 70.00

In stock

Add to Wishlist Browse Wishlist
 

Description

OLED Display I2C (4 pins) 1.3 inch

شاشة أو ليد

كود بسيط للدائرة

 

#include <Arduino.h>
#include <U8g2lib.h>

#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif

U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
void setup(void) {
u8g2.begin();
}
void loop(void) {
u8g2.clearBuffer(); // clear the internal memory
u8g2.setFont(u8g2_font_ncenB08_tr); // choose a suitable font
u8g2.drawStr(0,10,”Hello World!”); // write something to the internal memory
u8g2.sendBuffer(); // transfer internal memory to the display
delay(1000);
}

بيانات اضافية عن القطعة :

 OLED Model

المكتبة :

https://drive.google.com/file/d/1u4-yNDOv0w7JgBn9v_HCXtkccz_H9KXG/view?usp=drive_link