아두이노
아두이노 I2C Bitmap(비트맵)파일 OLED Display 하기(소스링크)
Channel_B2
2021. 8. 29. 21:18
https://www.youtube.com/watch?v=ulFFe2q73zY
#include "U8glib.h" U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); // I2C / TWI //온도 이미지삽입 const uint8_t temp[] PROGMEM = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x60, 0x20, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xF0, 0x30, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xE0, 0x60, 0x70, 0x70, 0x60, 0xE0, 0xE0, 0x00, 0x00, 0x00, 0xF8, 0xF8, 0x80, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x60, 0x30, 0x10, 0x10, 0x10, 0x20, 0xE0, 0x80, 0x00, 0x00, 0xF0, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x91, 0x13, 0x12, 0x12, 0x1E, 0x1E, 0x1E, 0x12, 0x12, 0x13, 0x11, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x07, 0x0F, 0x08, 0x08, 0x08, 0x08, 0xC8, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x11, 0x93, 0x90, 0x9C, 0x9C, 0x90, 0x93, 0x93, 0x90, 0x90, 0x90, 0x9F, 0x9F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06, 0xC8, 0x08, 0x08, 0x08, 0x04, 0x07, 0x03, 0x00, 0x00, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; void setup() { } void loop() { u8g.firstPage(); do { u8g.setFont(u8g_font_fub14); //u8g에 있는 폰트를 지정합니다. u8g.setPrintPos(35, 40); u8g.print("\xb0""C"); draw(); //draw 함수 호출 } while(u8g.nextPage()); } void draw(void){u8g.drawBitmapP(0, 0, 10, 25, temp);}; //X, Y, 가로(8나누기), 세로 |
Bitmap Assistant Download
http://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