본문 바로가기
프로그래밍/임베디드

[LCD][OLED] Bitmap To Array - LCD Assistant

by JR2 2021. 3. 8.

en.radzio.dxp.pl/bitmap_converter/

 

Bitmap converter for mono and color LCD displays

LCD Assistant LCD Assistant is a free tool for converting monochromatic bitmaps to data arrays for easy use with programs for embedded systems with microcontrollers and graphics monochromatic LCD displays like a T6963C, KS0108, SED1335 etc. Program create

en.radzio.dxp.pl

 

LCD Assistant의 다운로드 링크이다.

 

사용법 :

0.96 OLED 기준 - Byte Orientation : Horizental 로 바꿈

 

Save Output - NAME.c 로 저장

 

const unsigned char IMG_SCANING [] PROGMEM = {
0x00, 0x00, 0x7E, 0x6C, 0x1F, 0xFE, 0x03, 0x00, 0x03, 0x6C, 0x00, 0xC0, 0x03, 0x00, 0x03, 0x6C,
0x01, 0xE0, 0x03, 0x00, 0x7F, 0x6C, 0x07, 0x38, 0x07, 0x80, 0x06, 0x7C, 0x3C, 0x0F, 0x0C, 0xC0,
0x0C, 0x6C, 0x00, 0x00, 0x38, 0x70, 0x38, 0x6C, 0x3F, 0xFF, 0xE0, 0x1C, 0xE0, 0x6C, 0x00, 0xC0,
0x00, 0x00, 0x00, 0x6C, 0x03, 0xF0, 0x00, 0x00, 0x00, 0x0C, 0x0E, 0x1C, 0x00, 0x00, 0x30, 0x00,
0x18, 0x06, 0x00, 0x00, 0x30, 0x00, 0x18, 0x06, 0xFF, 0xFC, 0x30, 0x00, 0x0E, 0x1C, 0x00, 0x00,
0x1F, 0xFC, 0x03, 0xF0 
};

파일을 열어서, 저장되어 있는 배열에 PROGMEM만 붙혀서 사용하면 됨.

u8glib.bitmapP 명령어를 사용하면 됨.

github.com/olikraus/u8glib/wiki/userreference#drawbitmapp

 

 

댓글