1111#include <OneBitDisplay.h>
1212extern ONE_BIT_DISPLAY * dp ;
1313#elif (HAS_DISPLAY ) == 2
14- #include <TFT_eSPI .h>
15- extern TFT_eSPI * dp ;
14+ #include <bb_spi_lcd .h>
15+ extern BB_SPI_LCD * dp ;
1616#endif
1717
1818#define DISPLAY_PAGES (7) // number of paxcounter display pages
@@ -24,7 +24,6 @@ extern TFT_eSPI *dp;
2424#define MY_FONT_NORMAL FONT_8x8
2525#define MY_FONT_LARGE FONT_16x32
2626#define MY_FONT_STRETCHED FONT_12x16
27-
2827#define MY_DISPLAY_FIRSTLINE 30
2928
3029#ifndef MY_DISPLAY_RST
@@ -51,22 +50,21 @@ extern TFT_eSPI *dp;
5150// settings for TFT display library
5251#elif (HAS_DISPLAY == 2 )
5352
54- #define MY_FONT_SMALL 1
53+ #define MY_FONT_SMALL 2
5554#define MY_FONT_NORMAL 2
56- #define MY_FONT_LARGE 4
57- #define MY_FONT_STRETCHED 6
58-
55+ #define MY_FONT_LARGE 2
56+ #define MY_FONT_STRETCHED 2
5957#define MY_DISPLAY_FIRSTLINE 30
6058
59+ #ifndef TFT_FREQUENCY
60+ #define TFT_FREQUENCY 400000L
61+ #endif
62+
6163#ifndef MY_DISPLAY_FGCOLOR
62- #define MY_DISPLAY_FGCOLOR 0xFFFF // TFT_WHITE
64+ #define MY_DISPLAY_FGCOLOR TFT_YELLOW
6365#endif
6466#ifndef MY_DISPLAY_BGCOLOR
65- #define MY_DISPLAY_BGCOLOR 0x0000 // TFT_BLACK
66- #endif
67-
68- #ifndef TOUCH_CS
69- #define TOUCH_CS NOT_A_PIN
67+ #define MY_DISPLAY_BGCOLOR TFT_BLACK
7068#endif
7169
7270#endif
@@ -104,7 +102,6 @@ void dp_setup(int contrast = 0);
104102void dp_refresh (bool nextPage = false);
105103void dp_init (bool verbose = false);
106104void dp_shutdown (void );
107- void dp_message (const char * msg , int line , bool invers );
108105void dp_setFont (int font , int inv = 0 );
109106void dp_dump (uint8_t * pBuffer = NULL );
110107void dp_contrast (uint8_t contrast );
0 commit comments