Skip to content

Commit 52f3186

Browse files
committed
Bodmer#1314 Re-instate $ symbol with options to replace with £
In setup add: #define FONT_4_GBP To replace $ with £ in font 4
1 parent 5959550 commit 52f3186

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

Fonts/Font32rle.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
//
55
// This font contains 96 ASCII characters
66

7+
// Use the #define below to select a GBP sign instead of a dollar sign
8+
//#define FONT_4_GBP
79

810
PROGMEM const unsigned char widtbl_f32[96] = // character width table
911
{
@@ -58,6 +60,8 @@ PROGMEM const unsigned char chr_f32_23[] =
5860
0x7F, 0xD
5961
};
6062

63+
#ifdef FONT_4_GBP
64+
// GBP symbol
6165
PROGMEM const unsigned char chr_f32_24[] =
6266
{
6367
0x1F, 0x85, 0x05, 0x89, 0x03, 0x82, 0x03, 0x82,
@@ -67,6 +71,21 @@ PROGMEM const unsigned char chr_f32_24[] =
6771
0x0A, 0x81, 0x0B, 0x86, 0x02, 0x80, 0x01, 0x8B,
6872
0x01, 0x81, 0x04, 0x83, 0x63
6973
};
74+
#else
75+
// Dollar symbol
76+
PROGMEM const unsigned char chr_f32_24[] =
77+
{
78+
0x14, 0x80, 0x0A, 0x83, 0x07, 0x87, 0x04, 0x82,
79+
0x01, 0x80, 0x00, 0x82, 0x03, 0x81, 0x02, 0x80,
80+
0x01, 0x81, 0x03, 0x81, 0x02, 0x80, 0x01, 0x82,
81+
0x02, 0x82, 0x01, 0x80, 0x08, 0x84, 0x09, 0x84,
82+
0x0B, 0x83, 0x09, 0x84, 0x08, 0x80, 0x01, 0x82,
83+
0x01, 0x82, 0x02, 0x80, 0x02, 0x81, 0x02, 0x81,
84+
0x02, 0x80, 0x02, 0x81, 0x02, 0x83, 0x00, 0x80,
85+
0x01, 0x82, 0x03, 0x88, 0x06, 0x84, 0x0A, 0x80,
86+
0x67
87+
};
88+
#endif
7089

7190
PROGMEM const unsigned char chr_f32_25[] =
7291
{

TFT_eSPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef _TFT_eSPIH_
1717
#define _TFT_eSPIH_
1818

19-
#define TFT_ESPI_VERSION "2.3.86"
19+
#define TFT_ESPI_VERSION "2.3.87"
2020

2121
// Bit level feature flags
2222
// Bit 0 set: viewport capability

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "TFT_eSPI",
3-
"version": "2.3.86",
3+
"version": "2.3.87",
44
"keywords": "Arduino, tft, ePaper, display, Pico, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, RM68140, SSD1351, SSD1963, ILI9225, HX8357D",
55
"description": "A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, ESP8266, ESP32 and STM32",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=TFT_eSPI
2-
version=2.3.86
2+
version=2.3.87
33
author=Bodmer
44
maintainer=Bodmer
55
sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32

0 commit comments

Comments
 (0)