Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/util/7segment.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ July 27, 2015
#include <pgmspace.h>
#endif

static const unsigned char sevensegment [] PROGMEM = {
#ifndef ESP8266
#define CUST_PROGMEM PROGMEM
#else
#define CUST_PROGMEM
#endif

static const unsigned char sevensegment [] CUST_PROGMEM = {
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)
10,16,46,12,1,20,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Expand All @@ -50,4 +56,4 @@ static const unsigned char sevensegment [] PROGMEM = {
0x3E, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x7E, 0x1C, 0x3E, 0x41, 0xC1,
0xC1, 0xC1, 0xC1, 0x41, 0x3E, 0x1C, 0x00, 0x00, 0x41, 0xC1, 0xC1, 0xC1, 0xC1, 0x41, 0x3E, 0x1C
};
#endif
#endif
8 changes: 7 additions & 1 deletion src/util/font5x7.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ July 27, 2015
#include <pgmspace.h>
#endif

#ifndef ESP8266
#define CUST_PROGMEM PROGMEM
#else
#define CUST_PROGMEM
#endif

// Standard ASCII 5x7 font
static const unsigned char font5x7[] PROGMEM = {
static const unsigned char font5x7[] CUST_PROGMEM = {
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)
5,8,0,255,12,75,
0x00, 0x00, 0x00, 0x00, 0x00,
Expand Down
8 changes: 7 additions & 1 deletion src/util/font8x16.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ July 27, 2015
#include <pgmspace.h>
#endif

static const unsigned char font8x16[] PROGMEM = {
#ifndef ESP8266
#define CUST_PROGMEM PROGMEM
#else
#define CUST_PROGMEM
#endif

static const unsigned char font8x16[] CUST_PROGMEM = {
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)
8,16,32,96,2,56,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x00,
Expand Down
9 changes: 8 additions & 1 deletion src/util/fontlargeletter31x48.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ August 13, 2015
#else
#include <pgmspace.h>
#endif
static const unsigned char fontlargeletter31x48 [] PROGMEM = {

#ifndef ESP8266
#define CUST_PROGMEM PROGMEM
#else
#define CUST_PROGMEM
#endif

static const unsigned char fontlargeletter31x48 [] CUST_PROGMEM = {
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)
31,48,65,58,0,62,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xF8, 0xF8, 0xF8, 0xF8,
Expand Down
8 changes: 7 additions & 1 deletion src/util/fontlargenumber.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ July 27, 2015
#include <pgmspace.h>
#endif

static const unsigned char fontlargenumber[] PROGMEM = {
#ifndef ESP8266
#define CUST_PROGMEM PROGMEM
#else
#define CUST_PROGMEM
#endif

static const unsigned char fontlargenumber[] CUST_PROGMEM = {
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)
12,48,48,11,1,32,
0x00, 0xC0, 0xF8, 0x7C, 0x3E, 0x3E, 0xFC, 0xF8, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xE0,
Expand Down