Hallo,
I have something problem about my 0.96" oled display. I have 3 pcs OLED 0.96" display and all not working after few month or maybe a year not used.
I just tried with the same program but the display is blank.
I'm sure the display is working before and one of those is still soldered in my pcb project.
Do you have any clues what can I do?
Only with jumper cables for the spare parts and I have soldered the other OLED to the PCB. Both do not work after storage in the warehouse. The oled that I soldered worked last year and then I kept it in my warehouse. And now after I turn it on the display doesn't work.
And is it impossible what you connect the displays to (whatever that is, care to tell us?) is broken? Is that board the same the displays was connected to before?
Hi ledsyn,
I have 3 OLEDs display 1 soldered to pcb and I apply to electric panel. I'm sure all of my oled working last year and the other oled I have tried "Hello world" with wire jumper last year then the pcb I dismantle from panel and kept without power around a year. The last I try to power on the oled not work.
Sorry with my bad english.
I'm still waiting for the new module to ensure that the old module is damaged due to storage or not being operated for a long time.
Here is my code:
#include <Arduino.h>
#include <U8g2lib.h>
#include <SPI.h>
#include <Wire.h>
uint16_t l = 0;
uint16_t m = 0;
uint8_t n = 0;
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0);
void setup(void) {
u8g2.begin();
}
void loop(void) {
char m_str[6];
char l_str[6];
strcpy(m_str, u8x8_u16toa(m, 5)); /* convert m to a string with two digits */
strcpy(l_str, u8x8_u16toa(l, 5)); /* convert l to a string with two digits */
u8g2.firstPage();
do {
u8g2.setFont(u8g2_font_courR10_tf); // choose a suitable font
u8g2.drawStr(0,10,"adc PV ");
u8g2.drawStr(55,10,"=");
u8g2.drawStr(70,10,m_str);
u8g2.drawStr(0,23,"adc SP ");
u8g2.drawStr(55,23,"=");
u8g2.drawStr(70,23,l_str);
u8g2.drawHLine(2, 30,n);
} while ( u8g2.nextPage() );
delay(10);
l=n;
m++;
n++;
if ( m == 32767 )
m = 0;
if ( n == 127 )
n = 0;
}
Did you check the ID for the OLED , it must be changed in the library since it is not in the code you posted , just guessing maybe the OLED'S is faulty.