The images of the products are informative and may show minor differences, depending on the batch and the supplier. It is possible that the specifications and the price of the products can be changed without notice. We do our best to add the most accurate and correct specifications to the product page, but it is possible that they are not completely correct. if you identify such a case, please report this to us.
The product is intended for specialists and requires qualified and authorized personnel. The product does not include assembly/use instructions . Putting the product into operation by unqualified persons leads to the loss of the warranty according to the Terms and Conditions on the website.
OLED Display 0.96" I2C IIC White
International fast shipping within EU. Free Shipping for orders above 100 EUR in most EU countries.
We ship from our stock within 24H
All orders minimum 100€
OLED display 0.96 inch Blue color, compatible with Arduino and other development boards. Ideal for small projects thanks to the I2C and IIC communication interface.
This display does not require backlighting (this is given by the pixels).
Specifications:
High resolution: 128X64
Visual angle: >160 °
Ultra low consumption: 0.08W
Supply voltage: DC 3V-5V
Operating temperature: -30 ~70 degree
Dimensions mm: 29 x 27.5 x 4.3
Active display dimensions mm: 26.5 x 14.8
Support: IIC, I2C
Compatible at the I/O level directly with 3.3V and 5V microcontrollers (compatible directly, without converters)
Chip: SSD1306
Pixel color: White
IIC communication occupies a minimum number of pins.
Description of pins:
GND: Ground
VCC: 3.3V or 5V
SCL: IIC clock line
SDA: IIC data line
Instructions:
Login:
GND --------> GND
VCC --------> 3.3V
SCL --------> A5
SDA --------> A4
Delete all the libraries that could conflict with the display and install the Adafruit_GFX and Adafruit_SSD1306 libraries ( Tools --> Manage Libraries --> Search )
Test code:
#it includes // Includes core graphics library for the display
#it includes // Include Adafruit_SSD1306 library to drive the display
Adafruit_SSD1306 display(128, 64); // Create display
#it includes // Add a custom font
#it includes // 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 initialize
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Initialize the 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 maximum and 1 is a little dim)
} // End of setup
void loop() // Start of loop
{
Variables1++; // Increase variable by 1
if(Variable1 > 150) // If Variable1 is greater than 150
{
Variable1 = 0; // Set Variable1 to 0
}
// Convert Variable1 into a string, so we can change the text alignment to the right:
// It can also be used to add or remove decimal numbers.
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 three corner points defining the triangle, followed by a color
// Draw filled triangle:
display.fillTriangle(0.63, 15.45, 30.63, WHITE); // Draw filled triangle. X, Y coordinates for three corner points defining the triangle, followed by a color
// Draw line:
display.drawLine(40, 63, 70, 63, WHITE); // Draw line (x0,y0,x1,y1,color)
// Draw circles:
display.drawCircle(47, 36, 20, WHITE); // Draw circle (x,y,radius,color). X and Y are the coordinates for the center point
// Draw a filled circle:
display.fillCircle(12, 27, 10, WHITE); // Draw filled circle (x,y,radius,color). X and Y are the coordinates for the center point
// Draw rounded rectangle and fill:
display.fillRoundRect(58, 0, 18, 18, 5, WHITE); // Draw filled rounded rectangle (x,y,width,height,color)
// It draws from the location to down-right
// Draw rectangle:
display.drawRect(79, 0, 49, 27, WHITE); // Draw rectangle (x,y,width,height,color)
// It draws from the location to down-right
display.setFont(&FreeMonoBold12pt7b); // Set a custom font
// Print variable with left alignment:
display.setCursor(83, 20); // (x, y)
display.println(Variable1); // Text or value to print
// Draw rounded rectangle:
display.drawRoundRect(79, 37, 49, 27, 8, WHITE); // Draw rounded rectangle (x,y,width,height,radius,color)
// It draws from the location to down-right
// Print variable with right alignment:
display.setCursor(83, 57); // (x, y)
display.println(string); // Text or value to print
display.display(); // Print everything we set previously
} // End of loop