Màn Hình Oled Giao Tiếp 0.91 0.96 1.3 inch


₫ 65.000

Sản phẩm Màn Hình Oled Giao Tiếp 0.91 0.96 1.3 inch đang được mở bán với mức giá siêu tốt khi mua online, giao hàng online trên toàn quốc với chi phí tiết kiệm nhất,1 đã được bán ra kể từ lúc chào bán lần cuối cùng.Trên đây là số liệu về sản phẩm chúng tôi thống kê và gửi đến bạn, hi vọng với những gợi ý ở trên giúp bạn mua sắm tốt hơn tại Pricespy Việt Nam

Màn hình LCD Oled 0.96 inch giao tiếp I2C cho khả năng hiển thị đẹp, sang trọng, rõ nét vào ban ngày và khả năng tiết kiệm năng lượng tối đa với mức chi phí phù hợp, màn hình sử dụng giao tiếp I2C cho chất lượng đường truyền ổn định và rất dễ giao tiếp chỉ với 2 chân GPIO.



THÔNG SỐ KỸ THUẬT MÀN HÌNH LCD OLED 0.96 INCH
Điện áp sử dụng: 2.2~5.5VDC.
Công suất tiêu thụ: 0.04w
Góc hiển thị: lớn hơn 160 độ
Số điểm hiển thị: 128×64 điểm.

Giao tiếp: I2C
Driver: SSD1306
VCC 2.2~5.5VDC
GND 0VDC
SCL xung Clock
SDA dữ liệu vào Data in


CODE THAM KHẢO MÀN HÌNH LCD OLED 0.96 INCH GIAO TIẾP I2C



/*
Kết nối:
oled Uno Mega
* GND GND GND
* VCC 5V 5V
* SCL A5 SCL
* SDA A4 SDA
*/

#include // Include core graphics library for the display
#include // Include Adafruit_SSD1306 library to drive the display
Adafruit_SSD1306 display; // Create display
#include // Add a custom font
#include // Add a custom font
int Variable1; // Create a variable to have something dynamic to show on the display
void setup() // Start of setup
{
delay(100); // This delay is needed to let the display to initialize
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Initialize display with the I2C address of 0x3C
display.clearDisplay(); // Clear the buffer
display.setTextColor(WHITE); // Set color of the text
display.setRotation(0); // Set orientation. Goes from 0, 1, 2 or 3
display.setTextWrap(false); // By default, long lines of text are set to automatically “wrap” back to the leftmost column.
// To override this behavior (so text will run off the right side of the display - useful for
// scrolling marquee effects), use setTextWrap(false). The normal wrapping behavior is restored
// with setTextWrap(true).
display.dim(0); //Set brightness (0 is maximun and 1 is a little dim)

} // End of setup

void loop() // Start of loop
{
Variable1++; // Increase variable by 1
if(Variable1 > 150) // If Variable1 is greater than 150
{
Variable1 = 0; // Set Variable1 to 0
}
char string[10]; // Create a character array of 10 characters
// Convert float to a string:
dtostrf(Variable1, 3, 0, string); // (,,,)
display.clearDisplay(); // Clear the display so we can refresh
display.setFont(&FreeMono9pt7b); // Set a custom font
display.setTextSize(0); // Set text size. We are using a custom font so you should always use the text size of 0
// Print text:
display.setCursor(0, 10); // (x,y)
display.println("Hello"); // Text or value to print
// Draw triangle:
display.drawTriangle(40,40, 50,20, 60,40, WHITE); // Draw triangle. X, Y coordinates for th