Data Sheet
1.5inch OLED Module User Manual
otherwise probable need to reinstall the system (impossible terminate the process by pressing
ctrl+c, impossible to login with pi user permission).
CONVERT IMAGE TO ARRAYS
1. Convert Image data
Open 16-bit grayscale by Image2Lcd software, and set:
输出数据类型(Output data type): C 语言数组(*.c)
扫描方式 (Scanning type): 水平扫描(horizontal scanning)
输出灰度(Output grey level): 16 灰 (16-bit grey level)
最大宽度和高度(The max width and height):128 128 (The resolution of OLED)
Then check the option 包含图像头数据(Contain Header). The header is required while
analyze image data.
2. Analyzing header of image
For 16-bit grayscale image, the header likes that:
typedef struct _HEADGRAY
{
unsigned char scan;
unsigned char gray;
unsigned short w;