From 37a2e3605b29822e6bac1bacd54e8f7497bde6a7 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Mon, 10 Jun 2024 23:44:22 +0100 Subject: created bitmap image of kai stevenson logo --- disp_proj.ino | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/disp_proj.ino b/disp_proj.ino index 704cf0d..4d0259d 100644 --- a/disp_proj.ino +++ b/disp_proj.ino @@ -37,8 +37,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); #define NUMFLAKES 10 // Number of snowflakes in the animation example -#define LOGO_HEIGHT 16 -#define LOGO_WIDTH 16 +#define LOGO_HEIGHT 30 +#define LOGO_WIDTH 30 + +// 'logoN', 30x30px +const unsigned char epd_bitmap_logoN [] PROGMEM = { + 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x08, 0x40, 0x00, 0x00, 0x1c, 0x20, 0x00, + 0x00, 0x2a, 0x10, 0x00, 0x00, 0x51, 0x08, 0x00, 0x00, 0xb8, 0x44, 0x00, 0x00, 0x32, 0x22, 0x00, + 0x02, 0x70, 0x89, 0x00, 0x04, 0xa3, 0x34, 0x80, 0x08, 0x7f, 0x7f, 0x40, 0x11, 0x67, 0xf7, 0xa0, + 0x22, 0x37, 0xb1, 0x70, 0x40, 0x9f, 0xf0, 0x28, 0x84, 0x7c, 0xfa, 0x44, 0x89, 0x7c, 0xf8, 0x84, + 0x50, 0x3f, 0xe4, 0x08, 0x3a, 0x27, 0xb1, 0x10, 0x17, 0xaf, 0xda, 0x20, 0x0b, 0xfb, 0xf8, 0x40, + 0x04, 0xb3, 0x14, 0x80, 0x02, 0x44, 0x39, 0x00, 0x01, 0x11, 0x12, 0x00, 0x00, 0x88, 0x74, 0x00, + 0x00, 0x42, 0x28, 0x00, 0x00, 0x21, 0x50, 0x00, 0x00, 0x10, 0xe0, 0x00, 0x00, 0x08, 0x40, 0x00, + 0x00, 0x04, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00 +}; + + static const unsigned char PROGMEM logo_bmp[] = { 0b00000000, 0b11000000, 0b00000001, 0b11000000, @@ -312,7 +326,7 @@ void testdrawbitmap(void) { display.drawBitmap( (display.width() - LOGO_WIDTH ) / 2, (display.height() - LOGO_HEIGHT) / 2, - logo_bmp, LOGO_WIDTH, LOGO_HEIGHT, 1); + epd_bitmap_logoN, LOGO_WIDTH, LOGO_HEIGHT, 1); display.display(); delay(1000); } -- cgit v1.2.3-70-g09d2