Hello,
I recently get a Digole Serial Oled 160*128 (http://www.digole.com/index.php?productID=859) and find the particle library on Github (https://github.com/timothybrown/Spark-Core-Sundries). It’s pretty easy to display text, change color or whatever but I can’t put my start screen.
I use the Digole’s tool available at http://www.digole.com/tools/PicturetoC_Hex_converter.php to convert a bmp to char with all possibility (Black and white, 256 color, 262K color, other lcd adapter welcome screen, etc). Note : By the way, in the list “used for” I don’t find an option like 160128 Adaptor welcome screen like other. (there is simply 12864 for 12864 screen and 24060 for 24064)
I have also used examples provides by Digole, but nothing.
On the lcd, I get :
Downloading... Don't
turn me off!0x04 0X
00 - >Done Downloadi
ng !
The transfer works seems to work, but when I restart my photon, Nothing ! Not even “No welcome screen or wrong”, I get an empty screen.
Here’s my code :
#define _Digole_Serial_I2C_
#include "DigoleSerialDisp.h"
static const uint8_t screen[] =
{
0,0,0,0,0,0,1,255,255,128,0,0,0,0,0,0
,0,0,0,0,0,0,127,255,255,254,0,0,0,0,0,0
,0,0,0,0,0,15,255,255,255,255,240,0,0,0,0,0
,0,0,0,0,0,127,255,255,255,255,254,0,0,0,0,0
,0,0,0,0,3,255,255,255,255,255,255,192,0,0,0,0
,0,0,0,0,15,255,255,255,255,255,255,240,0,0,0,0
,0,0,0,0,127,255,255,255,255,255,255,254,0,0,0,0
,0,0,0,1,255,255,255,255,255,255,255,255,128,0,0,0
,0,0,0,7,255,255,255,255,255,255,255,255,224,0,0,0
,0,0,0,15,255,255,255,255,255,255,255,255,240,0,0,0
,0,0,0,63,255,255,255,255,255,255,255,255,252,0,0,0
,0,0,0,127,255,255,255,255,255,255,255,255,254,0,0,0
,0,0,0,255,255,255,255,255,255,255,255,255,255,0,0,0
,0,0,3,255,255,255,255,255,255,255,255,255,255,192,0,0
,0,0,7,255,255,255,255,255,255,255,255,255,255,224,0,0
,0,0,15,255,255,255,255,255,255,255,255,255,255,240,0,0
,0,0,31,255,7,255,255,255,255,240,31,255,255,248,0,0
,0,0,63,248,3,255,255,255,255,128,15,255,255,252,0,0
,0,0,63,240,7,255,255,255,254,0,63,255,255,252,0,0
,0,0,127,224,15,255,255,255,252,0,63,255,255,254,0,0
,0,0,255,192,15,255,255,255,248,0,63,255,255,255,0,0
,0,0,255,128,15,255,255,255,240,0,63,255,255,255,0,0
,0,1,255,128,3,243,255,255,240,0,15,207,255,255,128,0
,0,1,255,128,0,3,255,255,224,0,0,15,255,255,128,0
,0,3,255,0,0,3,255,255,224,0,0,15,255,255,192,0
,0,3,255,0,0,3,255,255,224,0,0,15,255,255,192,0
,0,3,255,128,0,3,255,255,224,0,0,15,255,255,192,0
,0,7,255,128,0,3,255,255,224,0,0,15,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,7,255,255,255,255,255,255,255,255,255,255,255,255,224,0
,0,3,255,255,255,255,255,255,255,255,255,255,255,255,192,0
,0,3,255,255,255,255,255,255,255,255,255,255,255,255,192,0
,0,3,255,255,255,255,255,255,255,255,255,255,255,255,192,0
,0,1,255,255,255,255,255,255,255,255,255,255,255,255,128,0
,0,1,255,255,255,255,255,255,255,255,255,255,255,255,128,0
,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0
,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0
,0,0,127,255,255,255,255,255,255,255,255,255,255,254,0,0
,0,0,63,255,255,255,255,255,255,255,255,255,255,252,0,0
,0,0,63,255,255,255,255,255,255,255,255,255,255,252,0,0
,0,0,31,255,255,255,255,255,128,63,255,255,255,248,0,0
,0,0,15,255,255,255,255,248,0,7,255,255,255,240,0,0
,0,0,7,255,255,255,255,224,0,0,255,255,255,224,0,0
,0,0,3,255,255,255,255,128,0,0,63,255,255,192,0,0
,0,0,0,255,255,255,255,0,0,0,31,255,255,0,0,0
,0,0,0,127,255,255,254,0,0,0,127,255,254,0,0,0
,0,0,0,63,255,255,252,0,0,3,255,255,252,0,0,0
,0,0,0,15,255,255,248,0,0,31,255,255,240,0,0,0
,0,0,0,7,255,255,248,0,1,255,255,255,224,0,0,0
,0,0,0,1,255,255,255,255,255,255,255,255,128,0,0,0
,0,0,0,0,127,255,255,255,255,255,255,254,0,0,0,0
,0,0,0,0,15,255,255,255,255,255,255,240,0,0,0,0
,0,0,0,0,3,255,255,255,255,255,255,192,0,0,0,0
,0,0,0,0,0,127,255,255,255,255,254,0,0,0,0,0
,0,0,0,0,0,15,255,255,255,255,240,0,0,0,0,0
,0,0,0,0,0,0,127,255,255,254,0,0,0,0,0,0
,0,0,0,0,0,0,1,255,255,128,0,0,0,0,0,0
};
DigoleSerialDisp mydisp(0x27);
void setup() {
mydisp.begin();
mydisp.clearScreen();
delay(500); //this delay is very important, it will let module to clear the receive buffer
mydisp.uploadStartScreen(sizeof(screen), screen);
delay(5000);
mydisp.displayStartScreen(0);
}
void loop() {
}
I used many bitmap, changed the LCD by another one, nothing
I used I2C connection.
The method drawBitmap works perfectly by the way, I could get a start screen this way, but this isn’t proper.