diff --git a/src/Icons.h b/src/Icons.h new file mode 100644 index 0000000..2427196 --- /dev/null +++ b/src/Icons.h @@ -0,0 +1,12 @@ +#pragma once + +namespace Icons +{ + const unsigned char steps [] PROGMEM = { + 0x00, 0x03, 0xc0, 0x00, 0x07, 0xe0, 0x00, 0x07, 0xe0, 0x00, 0x0f, 0xe0, 0x78, 0x0f, 0xe0, 0xfc, + 0x0f, 0xe0, 0xfc, 0x0f, 0xe0, 0xfc, 0x0f, 0xe0, 0xfe, 0x0f, 0xe0, 0xfe, 0x07, 0xc0, 0xfe, 0x07, + 0xc0, 0xfe, 0x07, 0x80, 0xfe, 0x00, 0x00, 0x7c, 0x0e, 0x00, 0x7c, 0x0f, 0x80, 0x7c, 0x1f, 0x80, + 0x20, 0x1f, 0x00, 0x06, 0x0f, 0x00, 0x3e, 0x0e, 0x00, 0x3e, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x1e, + 0x00, 0x00, 0x1e, 0x00, 0x00 + }; +}; \ No newline at end of file diff --git a/src/WatchFace.cpp b/src/WatchFace.cpp index de392c4..db7bba0 100644 --- a/src/WatchFace.cpp +++ b/src/WatchFace.cpp @@ -145,7 +145,7 @@ void WatchFace::DrawBatteryIcon() m_display.print("%"); m_display.setFont(&FreeMonoBold12pt7b); - m_display.drawBitmap(10, 177, steps, 19, 23, GxEPD_BLACK); + m_display.drawBitmap(10, 177, Icons::steps, 19, 23, GxEPD_BLACK); m_display.setCursor(40, 195); m_display.print(GetSteps()); }