Hi all.
Im using a 4display-shield-160 with a Mega ADK.
Im using the displayshield4d.h library from Brico Geek.
My code is as follows:
#include <displayshield4d.h>
DisplayShield4d oled;
void setup()
{
/* add setup code here */
Serial.begin(57600);
oled.Init();
}
void loop()
{
/* add main program code here */
oled.Clear();
delay(2000);
oled.setfont(OLED_FONT5x7);
oled.setfontmode(OLED_FONT_TRANSPARENT);
oled.drawstringblock(5, 5, 0, oled.RGB(255,255,255), 1, 1, "Test line #1");
oled.drawstringblock(5, 18, 0, oled.RGB(255,255,255), 1, 1, "Test line #2");
oled.drawstringblock(5, 41, 0, oled.RGB(255,255,255), 1, 1, "Test line #3");
delay(2000);
}
The code compiles ok, and downloads to my board. When it runs however only the first and third lines are displayed on the screen. Have tried connecting an external powersupply and that doesnt help.
Anyone have any ideas please?
Thanks in advance.