Skip to content

Commit

Permalink
Update big fonts for E-INK to include only digits 0..9 to save memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
melkati committed May 17, 2024
1 parent 1217f52 commit 7e13bf7
Show file tree
Hide file tree
Showing 9 changed files with 1,196 additions and 9,541 deletions.
28 changes: 14 additions & 14 deletions CO2_Gadget_EINK.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@ uint16_t cyclesLeftToRedrawDisplay = 0; // Cycles left to redraw display
// #define EPD_BUSY 4

#ifdef EINKBOARDDEPG0213BN
#include <NotoSans_Bold46pt7b.h>
#include <Digits_NotoSans_Bold46pt7b.h>
#include <NotoSans_SemiCondensed_Bold10pt7b.h>
const GFXfont SmallFont = NotoSans_SemiCondensed_Bold10pt7b;
const GFXfont BigFont = NotoSans_Bold46pt7b;
const GFXfont BigFont = Digits_NotoSans_Bold46pt7b;
int displayWidth = 250;
int displayHeight = 122;
uint16_t resetDuration = 2;
GxEPD2_BW<GxEPD2_213_BN, GxEPD2_213_BN::HEIGHT> display(GxEPD2_213_BN(EPD_CS, EPD_DC, EPD_RST, EPD_BUSY)); // DEPG0213BN https://s.click.aliexpress.com/e/_DDFb2gl
#endif
#ifdef EINKBOARDGDEM0213B74
#include <NotoSans_Bold46pt7b.h>
#include <Digits_NotoSans_Bold46pt7b.h>
#include <NotoSans_SemiCondensed_Bold10pt7b.h>
const GFXfont SmallFont = NotoSans_SemiCondensed_Bold10pt7b;
const GFXfont BigFont = NotoSans_Bold46pt7b;
const GFXfont BigFont = Digits_NotoSans_Bold46pt7b;
int displayWidth = 250;
int displayHeight = 122;
uint16_t resetDuration = 2;
GxEPD2_BW<GxEPD2_213_B74, GxEPD2_213_B74::HEIGHT> display(GxEPD2_213_B74(EPD_CS, EPD_DC, EPD_RST, EPD_BUSY)); // GDEM0213B74 https://s.click.aliexpress.com/e/_DDFb2gl
#endif
#ifdef EINKBOARDGDEW0213M21
#include <NotoSans_Bold38pt7b.h>
#include <Digits_NotoSans_Bold48pt7b.h>
#include <NotoSans_Bold6pt7b.h>
const GFXfont SmallFont = NotoSans_Bold6pt7b;
const GFXfont BigFont = NotoSans_Bold38pt7b;
const GFXfont BigFont = Digits_NotoSans_Bold48pt7b;
int displayWidth = 212;
int displayHeight = 104;
uint16_t resetDuration = 2;
Expand All @@ -67,10 +67,10 @@ GxEPD2_BW<GxEPD2_213_M21, GxEPD2_213_M21 ::HEIGHT> display(GxEPD2_213_M21(EPD_CS
#endif

#ifdef EINKBOARDGDEM029T94
#include <NotoSans_Bold48pt7b.h>
#include <Digits_NotoSans_Bold48pt7b.h>
#include <NotoSans_Bold6pt7b.h>
const GFXfont SmallFont = NotoSans_Bold6pt7b;
const GFXfont BigFont = NotoSans_Bold48pt7b;
const GFXfont BigFont = Digits_NotoSans_Bold48pt7b;
int displayWidth = 296;
int displayHeight = 128;
uint16_t resetDuration = 2;
Expand All @@ -94,10 +94,10 @@ GxEPD2_BW<GxEPD2_290_T94, GxEPD2_290_T94::HEIGHT> display(GxEPD2_290_T94(EPD_CS,
#endif

#ifdef EINKBOARD_WEACT_DEPG0213BN
#include <NotoSans_Bold46pt7b.h>
#include <Digits_NotoSans_Bold46pt7b.h>
#include <NotoSans_SemiCondensed_Bold10pt7b.h>
const GFXfont SmallFont = NotoSans_SemiCondensed_Bold10pt7b;
const GFXfont BigFont = NotoSans_Bold46pt7b;
const GFXfont BigFont = Digits_NotoSans_Bold46pt7b;
int displayWidth = 250;
int displayHeight = 122;
uint16_t resetDuration = 50;
Expand All @@ -109,10 +109,10 @@ GxEPD2_BW<GxEPD2_213_BN, GxEPD2_213_BN::HEIGHT> display(GxEPD2_213_BN(EPD_CS, EP
#endif

#ifdef EINKBOARD_WEACT_GDEH0154D67
#include <NotoSans_Bold38pt7b.h>
#include <Digits_NotoSans_Bold48pt7b.h>
#include <NotoSans_SemiCondensed_Bold10pt7b.h>
const GFXfont SmallFont = NotoSans_SemiCondensed_Bold10pt7b;
const GFXfont BigFont = NotoSans_Bold38pt7b;
const GFXfont BigFont = Digits_NotoSans_Bold48pt7b;
int displayWidth = 200;
int displayHeight = 200;
uint16_t resetDuration = 50;
Expand All @@ -124,10 +124,10 @@ GxEPD2_BW<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> display(GxEPD2_154_D67(EPD_CS,
#endif

#ifdef EINKBOARD_WEACT_GxEPD2_290_BS
#include <NotoSans_Bold38pt7b.h>
#include <Digits_NotoSans_Bold48pt7b.h>
#include <NotoSans_SemiCondensed_Bold10pt7b.h>
const GFXfont SmallFont = NotoSans_SemiCondensed_Bold10pt7b;
const GFXfont BigFont = NotoSans_Bold38pt7b;
const GFXfont BigFont = Digits_NotoSans_Bold48pt7b;
int displayWidth = 200;
int displayHeight = 200;
uint16_t resetDuration = 50;
Expand Down
322 changes: 322 additions & 0 deletions Digits_NotoSans_Bold38pt7b.h

Large diffs are not rendered by default.

417 changes: 417 additions & 0 deletions Digits_NotoSans_Bold46pt7b.h

Large diffs are not rendered by default.

442 changes: 442 additions & 0 deletions Digits_NotoSans_Bold48pt7b.h

Large diffs are not rendered by default.

1,828 changes: 0 additions & 1,828 deletions NotoSans_Bold38pt7b.h

This file was deleted.

2,222 changes: 0 additions & 2,222 deletions NotoSans_Bold42pt7b.h

This file was deleted.

2,623 changes: 0 additions & 2,623 deletions NotoSans_Bold46pt7b.h

This file was deleted.

2,853 changes: 0 additions & 2,853 deletions NotoSans_Bold48pt7b.h

This file was deleted.

2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extra_configs = platformio_extra_configs.ini
[version]
build_flags =
-D CO2_GADGET_VERSION="\"0.12."\"
-D CO2_GADGET_REV="\"072-development"\"
-D CO2_GADGET_REV="\"073-development"\"

;****************************************************************************************
;*** This is deprecated. It's here only for backward compatibility.
Expand Down

0 comments on commit 7e13bf7

Please sign in to comment.