diff --git a/morse_decoder/logo.h b/morse_decoder/logo.h new file mode 100644 index 0000000..b275d43 --- /dev/null +++ b/morse_decoder/logo.h @@ -0,0 +1,12 @@ +// Logo +// https://javl.github.io/image2cpp/ +// 'logo', 55x16px +const unsigned char epd_bitmap_logo [] PROGMEM = { + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, + 0x07, 0x00, 0xff, 0xff, 0x7f, 0xff, 0xff, 0x07, 0x00, 0xff, 0xff, 0x7f, 0xff, 0xff, 0x07, 0x00, + 0xff, 0xff, 0x7f, 0xff, 0xff, 0x07, 0x00, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x7f, 0xff, 0x01, 0xfc, 0xff, 0xff, 0xff, 0x7f, 0xff, 0x01, 0xfc, 0xff, 0xff, 0xff, 0x7f, 0xff, + 0x01, 0xfc, 0x3f, 0x00, 0xfc, 0x7f, 0xff, 0x01, 0xfc, 0x3f, 0x00, 0xfc, 0x7f, 0xff, 0x01, 0xfc, + 0x3f, 0x00, 0xfc, 0x7f, 0xff, 0x01, 0xfc, 0x3f, 0x00, 0xfc, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f +}; \ No newline at end of file diff --git a/morse_decoder/morse_decoder.ino b/morse_decoder/morse_decoder.ino index 4c30a8e..01911b6 100644 --- a/morse_decoder/morse_decoder.ino +++ b/morse_decoder/morse_decoder.ino @@ -1,8 +1,10 @@ #include -#include +#include // https://github.com/olikraus/u8g2 #include -#include "private/logo_svntk.h" +#include "logo.h" +#define logo_width 55 +#define logo_height 16 #define BUTTON_PIN D5 #define BUTTON_ONBOARD_PIN D6 @@ -60,7 +62,7 @@ void drawStatus() { u8g2.clearBuffer(); u8g2.setFont(u8g2_font_fub17_tr); - u8g2.drawXBMP(128 - 55, 0, 55, 16, epd_bitmap_logo); // top right corner + u8g2.drawXBMP(128 - logo_width, 0, logo_width, logo_height, epd_bitmap_logo); // top right corner // Zeige Morsezeichen u8g2.drawStr(10, 20, currentMorse.c_str());