I have two separate systems with the following setup: a Grove shield on an Arduino Yun with an OLED Display 128*64 in the first I2C plug (the one nearest the analog plugs). Here is the problem: when I load up the “OLED_Hello_World” example nothing happens. The screens on both are dark.
These are new Yuns and seem to be working fine otherwise. I put a Grove Temp/Humidity Pro sensor on A0 and that worked great. The OLED displays don’t. I tried one of the OLED displays on a Xadow, and it works fine there, so I don’t think there is anything wrong with the OLED hardware.
Any idea what is going on?
The example code:
SeeedOled.init(); //initialze SEEED OLED display
PORTB |= 0x21;
SeeedOled.clearDisplay(); //clear the screen and set start position to top left corner
SeeedOled.setNormalDisplay(); //Set display to normal mode (i.e non-inverse mode)
SeeedOled.setPageMode(); //Set addressing mode to Page Mode
SeeedOled.setTextXY(0,0); //Set the cursor to Xth Page, Yth Column
SeeedOled.putString(“Hello World!”); //Print the String