From e4eba41912ccecc6776ff9c2a20a93e1785195d2 Mon Sep 17 00:00:00 2001 From: "Mr.Blinky" Date: Sun, 29 Jan 2023 22:25:59 +0100 Subject: [PATCH] Add microcade logo --- .../Arduboy2/extras/assets/microcade_logo.png | Bin 0 -> 385 bytes .../libraries/Arduboy2/src/Arduboy2Data.cpp | 40 ++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 board-package-source/libraries/Arduboy2/extras/assets/microcade_logo.png diff --git a/board-package-source/libraries/Arduboy2/extras/assets/microcade_logo.png b/board-package-source/libraries/Arduboy2/extras/assets/microcade_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..879292a13a3e748a9c83eadde4fcb76a31efc52d GIT binary patch literal 385 zcmV-{0e=38P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGmbN~PnbOGLGA9w%&0TxL_K~z{r?UvyV z!XONU!S{dX=_Q`tngSg#|JX0VxpK7Z9F4VP7OA9a^CGx4g-=_-L~uY!1uSdZT>GjFx&{Z)+F&-~=%*?$Ofr;uh6<>%28!RSPtZ f&)CnDOj61d&>q%yNi8fi00000NkvXXu0mjfJg%r> literal 0 HcmV?d00001 diff --git a/board-package-source/libraries/Arduboy2/src/Arduboy2Data.cpp b/board-package-source/libraries/Arduboy2/src/Arduboy2Data.cpp index ec13aff..455d525 100644 --- a/board-package-source/libraries/Arduboy2/src/Arduboy2Data.cpp +++ b/board-package-source/libraries/Arduboy2/src/Arduboy2Data.cpp @@ -7,6 +7,15 @@ #include "Arduboy2.h" #include +#ifdef MICROCADE +// microcade_logo.png +// drawBitmap() format +// 89x16 px (178 bytes) +const PROGMEM uint8_t Arduboy2Base::arduboy_logo[] = { + 0xE0, 0xE0, 0xE0, 0x40, 0x60, 0xE0, 0xE0, 0xC0, 0xC0, 0xC0, 0x60, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0xE6, 0xEE, 0xEE, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xE0, 0xC0, 0x40, 0x00, 0xE0, 0xE0, 0xE0, 0xC0, 0x60, 0x60, 0x60, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xE0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xE0, 0xC0, 0x40, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xC0, 0xE0, 0xE0, 0xE0, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xC0, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xE0, 0xC0, 0xC0, 0x00, + 0x7F, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x7F, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00, 0x0F, 0x1F, 0x3F, 0x70, 0x60, 0x60, 0x70, 0x30, 0x20, 0x00, 0x7F, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x3F, 0x3F, 0x70, 0x60, 0x60, 0x70, 0x3F, 0x3F, 0x0F, 0x00, 0x0F, 0x1F, 0x3F, 0x70, 0x60, 0x60, 0x70, 0x30, 0x20, 0x0F, 0x3F, 0x3F, 0x70, 0x60, 0x60, 0x30, 0x7F, 0x7F, 0x7F, 0x00, 0x0F, 0x3F, 0x3F, 0x70, 0x60, 0x60, 0x30, 0x7F, 0x7F, 0x7F, 0x00, 0x0F, 0x3F, 0x3F, 0x76, 0x66, 0x66, 0x66, 0x37, 0x27, 0x07 +}; +#else // arduboy_logo.png // drawBitmap() format // 88x16 px (176 bytes) @@ -30,7 +39,26 @@ const PROGMEM uint8_t Arduboy2Base::arduboy_logo[] = { 0xE0, 0x70, 0x3F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00 }; +#endif +#ifdef MICROCADE +// microcade_logo.png +// drawCompressed() format +// 89x16 px (161 bytes) + const PROGMEM uint8_t Arduboy2Base::arduboy_logo_compressed[] = { + 0x58, 0x0f, 0xa4, 0x92, 0x4a, 0x2a, 0x9b, 0xdd, 0x2a, 0xa9, 0xec, 0x76, 0xbb, 0xdc, 0x2a, 0xa9, + 0xec, 0x3a, 0xa2, 0x57, 0xa9, 0x54, 0x2a, 0xc5, 0xba, 0x5d, 0x2a, 0xb9, 0xdd, 0x2a, 0xbb, 0x8d, + 0x4d, 0x49, 0x25, 0x95, 0x5d, 0x6e, 0xb7, 0xd3, 0x6d, 0x97, 0x4a, 0x6e, 0xb7, 0xca, 0x6e, 0x67, + 0xdf, 0x2e, 0x95, 0xdc, 0x6e, 0x95, 0xdd, 0x46, 0xb7, 0x5d, 0x2a, 0xb9, 0x5d, 0x2f, 0x95, 0x54, + 0x52, 0xb1, 0x6e, 0x97, 0x4a, 0x6e, 0xd7, 0xcc, 0xac, 0xdb, 0xa5, 0x92, 0xdb, 0xad, 0xb2, 0xdb, + 0xbd, 0x4e, 0xa7, 0x89, 0x75, 0x3a, 0x4d, 0xac, 0xd3, 0x69, 0x22, 0x9d, 0x4e, 0x13, 0x39, 0x27, + 0x95, 0xb5, 0xca, 0x6e, 0x97, 0x4a, 0xae, 0x63, 0xd2, 0xe9, 0x34, 0x82, 0x9c, 0xb3, 0x5b, 0xab, + 0xec, 0x76, 0xa9, 0xb2, 0xdb, 0x1d, 0x97, 0x73, 0x52, 0x59, 0xab, 0xec, 0x76, 0xa9, 0xe4, 0xba, + 0x9d, 0xb3, 0x5b, 0xab, 0xec, 0x76, 0xf9, 0x3a, 0x9d, 0x26, 0x72, 0xce, 0x6e, 0xad, 0xb2, 0xdb, + 0xe5, 0xeb, 0x74, 0x9a, 0xc8, 0x39, 0xbb, 0x55, 0xa7, 0xfe, 0xff, 0xff, 0x53, 0xbd, 0xba, 0x95, + 0x04 + }; +#else // arduboy_logo.png // drawCompressed() format // 88x16 px (151 bytes) @@ -52,7 +80,18 @@ const PROGMEM uint8_t Arduboy2Base::arduboy_logo_compressed[] = { 0xDD, 0x6E, 0x97, 0xCA, 0xA9, 0xEC, 0x12, 0x55, 0x69, 0x42, 0x7A }; +#endif +#ifdef MICROCADE +// microcade_logo.png +// Sprites::drawSelfMasked() format +// 89x16 px (180 bytes) +const PROGMEM uint8_t Arduboy2Base::arduboy_logo_sprite[] = { + 89, 16, + 0xE0, 0xE0, 0xE0, 0x40, 0x60, 0xE0, 0xE0, 0xC0, 0xC0, 0xC0, 0x60, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0xE6, 0xEE, 0xEE, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xE0, 0xC0, 0x40, 0x00, 0xE0, 0xE0, 0xE0, 0xC0, 0x60, 0x60, 0x60, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xE0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xE0, 0xC0, 0x40, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xC0, 0xE0, 0xE0, 0xE0, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xC0, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0x60, 0x60, 0xE0, 0xC0, 0xC0, 0x00, + 0x7F, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x7F, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00, 0x0F, 0x1F, 0x3F, 0x70, 0x60, 0x60, 0x70, 0x30, 0x20, 0x00, 0x7F, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x3F, 0x3F, 0x70, 0x60, 0x60, 0x70, 0x3F, 0x3F, 0x0F, 0x00, 0x0F, 0x1F, 0x3F, 0x70, 0x60, 0x60, 0x70, 0x30, 0x20, 0x0F, 0x3F, 0x3F, 0x70, 0x60, 0x60, 0x30, 0x7F, 0x7F, 0x7F, 0x00, 0x0F, 0x3F, 0x3F, 0x70, 0x60, 0x60, 0x30, 0x7F, 0x7F, 0x7F, 0x00, 0x0F, 0x3F, 0x3F, 0x76, 0x66, 0x66, 0x66, 0x37, 0x27, 0x07 +}; +#else // arduboy_logo.png // Sprites::drawSelfMasked() format // 88x16 px (178 bytes) @@ -77,6 +116,7 @@ const PROGMEM uint8_t Arduboy2Base::arduboy_logo_sprite[] = { 0xE0, 0x70, 0x3F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00 }; +#endif // ASCII based 5x7 font // IBM PC code page 437