mirror of https://github.com/lumapu/ahoy.git
27 changed files with 2119 additions and 203 deletions
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 43 KiB |
@ -0,0 +1,22 @@ |
|||||
|
#include "../../utils/helper.h" |
||||
|
|
||||
|
#ifndef __DISPLAY_DATA__ |
||||
|
#define __DISPLAY_DATA__ |
||||
|
|
||||
|
struct DisplayData { |
||||
|
const char *version=nullptr; |
||||
|
float totalPower=0.0f; // indicate current power (W)
|
||||
|
float totalYieldDay=0.0f; // indicate day yield (W)
|
||||
|
float totalYieldTotal=0.0f; // indicate total yield (W)
|
||||
|
uint32_t utcTs=0; // indicate absolute timestamp (utc unix time). 0 = time is not synchonized
|
||||
|
uint8_t nrProducing=0; // indicate number of producing inverters
|
||||
|
uint8_t nrSleeping=0; // indicate number of sleeping inverters
|
||||
|
bool WifiSymbol = false; // indicate if WiFi is connected
|
||||
|
bool RadioSymbol = false; // indicate if radio module is connecting and working
|
||||
|
bool MQTTSymbol = false; // indicate if MQTT is connected
|
||||
|
int8_t WifiRSSI=SCHAR_MIN; // indicate RSSI value for WiFi
|
||||
|
int8_t RadioRSSI=SCHAR_MIN; // indicate RSSI value for radio
|
||||
|
IPAddress ipAddress; // indicate ip adress of ahoy
|
||||
|
}; |
||||
|
|
||||
|
#endif /*__DISPLAY_DATA__*/ |
@ -0,0 +1,6 @@ |
|||||
|
.\bdfconv\bdfconv_2_22.exe -v -f 1 -m "32-137" u8g2_font_5x8_symbols_ahoy.bdf -o u8g2_font_5x8_symbols_ahoy.c_ -n u8g2_font_5x8_symbols_ahoy |
||||
|
|
||||
|
.\bdfconv\bdfconv_2_22.exe -v -f 1 -m "65-75" u8g2_font_ncenB10_symbols10_ahoy.bdf -o u8g2_font_ncenB10_symbols10_ahoy.c_ -n u8g2_font_ncenB10_symbols10_ahoy |
||||
|
.\bdfconv\bdfconv_2_22.exe -v -f 1 -m "65-75" u8g2_font_ncenB08_symbols8_ahoy.bdf -o u8g2_font_ncenB08_symbols8_ahoy.c_ -n u8g2_font_ncenB08_symbols8_ahoy |
||||
|
|
||||
|
pause |
@ -0,0 +1,11 @@ |
|||||
|
Useful sources to edit u8g2 fonts: |
||||
|
|
||||
|
bdf font files for u8g2 font library: |
||||
|
https://github.com/olikraus/u8g2/tree/master/tools/font/bdf |
||||
|
|
||||
|
Tool to edit bdf files: |
||||
|
https://github.com/olikraus/u8g2/tree/master/tools/font/fony |
||||
|
|
||||
|
Tool to convert bdf font files to u8g2 source code: |
||||
|
https://github.com/olikraus/u8g2/tree/master/tools/font/bdfconv |
||||
|
|
File diff suppressed because it is too large
@ -0,0 +1,40 @@ |
|||||
|
/* |
||||
|
Fontname: u8g2_font_5x8_symbols_ahoy |
||||
|
Copyright: Public domain font. Share and enjoy. |
||||
|
Glyphs: 106/106 |
||||
|
BBX Build Mode: 0 |
||||
|
*/ |
||||
|
const uint8_t u8g2_font_5x8_symbols_ahoy[1052] U8G2_FONT_SECTION("u8g2_font_5x8_symbols_ahoy") = |
||||
|
"j\0\3\2\4\4\3\4\5\10\10\0\377\6\377\6\0\1\61\2b\4\3 \5\0\304\11!\7a\306" |
||||
|
"\212!\11\42\7\63\335\212\304\22#\16u\304\232R\222\14JePJI\2$\14u\304\252l\251m" |
||||
|
"I\262E\0%\10S\315\212(\351\24&\13t\304\232(i\252\64%\1'\6\61\336\212\1(\7b" |
||||
|
"\305\32\245))\11b\305\212(\251(\0*\13T\304\212(Q\206D\211\2+\12U\304\252\60\32\244" |
||||
|
"\60\2,\7\63\275\32\245\4-\6\24\324\212!.\6\42\305\212!/\10d\304\272R[\6\60\14d" |
||||
|
"\304\32%R\206DJ\24\0\61\10c\305\232Dj\31\62\13d\304\32%\312\22%\33\2\63\13d\304" |
||||
|
"\212!\212D)Q\0\64\13d\304\252H\251\14Q\226\0\65\12d\304\212A\33\245D\1\66\13d\304" |
||||
|
"\32%[\42)Q\0\67\13d\304\212!\213\262(\213\0\70\14d\304\32%J\224HJ\24\0\71\13" |
||||
|
"d\304\32%\222\222-Q\0:\10R\305\212!\32\2;\10c\275\32\243R\2<\10c\305\252\244\224" |
||||
|
"\25=\10\64\314\212!\34\2>\11c\305\212\254\224\224\0?\11c\305\232\246$M\0@\15\205\274*" |
||||
|
")\222\226DI\244\252\2A\12d\304\32%\222\206I\12B\14d\304\212%\32\222H\32\22\0C\12" |
||||
|
"d\304\32%\322J\211\2D\12d\304\212%r\32\22\0E\12d\304\212A[\262l\10F\12d\304" |
||||
|
"\212A[\262\32\0G\13d\304\32%\322\222)Q\0H\12d\304\212H\32&S\0I\10c\305\212" |
||||
|
"%j\31J\12d\304\232)\253\224\42\0K\13d\304\212HI\244\244S\0L\10d\304\212\254\333\20" |
||||
|
"M\12d\304\212h\70D\246\0N\12d\304\212h\31\226I\12O\12d\304\32%rJ\24\0P\13" |
||||
|
"d\304\212%\222\206$\313\0Q\12t\274\32%\222\26\307\0R\13d\304\212%\222\206$\222\2S\14" |
||||
|
"d\304\32%J\302$J\24\0T\11e\304\212A\12;\1U\11d\304\212\310S\242\0V\12d\304" |
||||
|
"\212\310)\221\24\0W\12d\304\212\310\64\34\242\0X\13d\304\212HJ$%\222\2Y\12e\304\212" |
||||
|
"LKja\11Z\12d\304\212!\213\332\206\0[\10c\305\212!j\32\134\10d\304\212,l\13]" |
||||
|
"\10c\305\212\251i\10^\6#\345\232\6_\6\24\274\212!`\6\42\345\212(a\11D\304\232!\222" |
||||
|
"\222\1b\13d\304\212,[\42iH\0c\7C\305\232)\23d\12d\304\272\312\20I\311\0e\11" |
||||
|
"D\304\32%\31\262\1f\12d\304\252Ji\312\42\0g\12T\274\32%J\266D\1h\12d\304\212" |
||||
|
",[\42S\0i\10c\305\232P\252\14j\12s\275\252\64\212\224\12\0k\12d\304\212\254\64$\221" |
||||
|
"\24l\10c\305\12\251\313\0m\12E\304\12\245EI\224\2n\10D\304\212%\62\5o\11D\304\32" |
||||
|
"%\222\22\5p\12T\274\212%\32\222,\3q\11T\274\232!J\266\2r\11D\304\212$\261e\0" |
||||
|
"s\10C\305\232![\0t\13d\304\232,\232\262$J\0u\10D\304\212\310\224\14v\10C\305\212" |
||||
|
"\304R\1w\12E\304\212LI\224.\0x\11D\304\212(\221\224(y\13T\274\212HJ\206(Q" |
||||
|
"\0z\11D\304\212!*\15\1{\12t\304*%L\304(\24|\6a\306\212\3}\13t\304\12\61" |
||||
|
"\12\225\60\221\0~\10$\344\232DI\0\5\0\304\12\200\13u\274\212K\242T\266\260\4\201\14f" |
||||
|
"D\233!\11#-\312!\11\202\15hD<\65\12\243,\214\302$\16\203\15w<\214C\22F\71\220" |
||||
|
"\26\207A\204\16\205\274\212,)%Y\230%QR\13\205\17\206<\213\60\31\22\311\66D\245!\11\3" |
||||
|
"\206\20\210<\254\342\20]\302(L\246C\30E\0\207\15wD\334X\25\267\341\20\15\21\0\210\16w" |
||||
|
"<\214\203RQ\25I\212\324a\20\211\15f\304\213)\213\244,\222\222\245\0\0\0\0"; |
Binary file not shown.
@ -0,0 +1,166 @@ |
|||||
|
STARTFONT 2.1 |
||||
|
COMMENT Exported by Fony v1.4.7 |
||||
|
FONT u8g2_font_ncenB08_symbols8_ahoy |
||||
|
SIZE 12 100 100 |
||||
|
FONTBOUNDINGBOX 9 11 0 -2 |
||||
|
STARTPROPERTIES 6 |
||||
|
COPYRIGHT "" |
||||
|
RESOLUTION_X 100 |
||||
|
RESOLUTION_Y 100 |
||||
|
FONT_ASCENT 10 |
||||
|
FONT_DESCENT 2 |
||||
|
DEFAULT_CHAR 0 |
||||
|
ENDPROPERTIES |
||||
|
CHARS 11 |
||||
|
STARTCHAR 065 |
||||
|
ENCODING 65 |
||||
|
SWIDTH 576 0 |
||||
|
DWIDTH 8 0 |
||||
|
BBX 7 8 0 0 |
||||
|
BITMAP |
||||
|
FE |
||||
|
92 |
||||
|
D6 |
||||
|
38 |
||||
|
10 |
||||
|
10 |
||||
|
10 |
||||
|
10 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 066 |
||||
|
ENCODING 66 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 8 9 1 0 |
||||
|
BITMAP |
||||
|
3C |
||||
|
42 |
||||
|
99 |
||||
|
24 |
||||
|
42 |
||||
|
18 |
||||
|
24 |
||||
|
00 |
||||
|
18 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 067 |
||||
|
ENCODING 67 |
||||
|
SWIDTH 576 0 |
||||
|
DWIDTH 8 0 |
||||
|
BBX 8 8 0 0 |
||||
|
BITMAP |
||||
|
18 |
||||
|
24 |
||||
|
24 |
||||
|
42 |
||||
|
42 |
||||
|
42 |
||||
|
42 |
||||
|
81 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 068 |
||||
|
ENCODING 68 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 8 8 0 0 |
||||
|
BITMAP |
||||
|
FF |
||||
|
41 |
||||
|
20 |
||||
|
10 |
||||
|
10 |
||||
|
20 |
||||
|
41 |
||||
|
FF |
||||
|
ENDCHAR |
||||
|
STARTCHAR 069 |
||||
|
ENCODING 69 |
||||
|
SWIDTH 576 0 |
||||
|
DWIDTH 8 0 |
||||
|
BBX 7 8 0 0 |
||||
|
BITMAP |
||||
|
FE |
||||
|
D6 |
||||
|
FE |
||||
|
38 |
||||
|
10 |
||||
|
38 |
||||
|
54 |
||||
|
92 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 070 |
||||
|
ENCODING 70 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 8 9 1 0 |
||||
|
BITMAP |
||||
|
BD |
||||
|
42 |
||||
|
BD |
||||
|
3C |
||||
|
5A |
||||
|
18 |
||||
|
24 |
||||
|
42 |
||||
|
99 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 071 |
||||
|
ENCODING 71 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 8 8 0 0 |
||||
|
BITMAP |
||||
|
24 |
||||
|
3C |
||||
|
E7 |
||||
|
42 |
||||
|
42 |
||||
|
E7 |
||||
|
3C |
||||
|
24 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 072 |
||||
|
ENCODING 72 |
||||
|
SWIDTH 576 0 |
||||
|
DWIDTH 8 0 |
||||
|
BBX 7 7 0 1 |
||||
|
BITMAP |
||||
|
04 |
||||
|
06 |
||||
|
06 |
||||
|
0E |
||||
|
1E |
||||
|
FC |
||||
|
78 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 073 |
||||
|
ENCODING 73 |
||||
|
SWIDTH 576 0 |
||||
|
DWIDTH 8 0 |
||||
|
BBX 7 9 0 0 |
||||
|
BITMAP |
||||
|
44 |
||||
|
FE |
||||
|
82 |
||||
|
92 |
||||
|
B2 |
||||
|
92 |
||||
|
92 |
||||
|
82 |
||||
|
FE |
||||
|
ENDCHAR |
||||
|
STARTCHAR 074 |
||||
|
ENCODING 74 |
||||
|
SWIDTH 504 0 |
||||
|
DWIDTH 7 0 |
||||
|
BBX 0 0 0 0 |
||||
|
BITMAP |
||||
|
ENDCHAR |
||||
|
STARTCHAR 075 |
||||
|
ENCODING 75 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 0 0 0 0 |
||||
|
BITMAP |
||||
|
ENDCHAR |
||||
|
ENDFONT |
@ -0,0 +1,13 @@ |
|||||
|
/* |
||||
|
Fontname: u8g2_font_ncenB08_symbols8_ahoy |
||||
|
Copyright: |
||||
|
Glyphs: 11/11 |
||||
|
BBX Build Mode: 0 |
||||
|
*/ |
||||
|
const uint8_t u8g2_font_ncenB08_symbols8_ahoy[173] U8G2_FONT_SECTION("u8g2_font_ncenB08_symbols8_ahoy") = |
||||
|
"\13\0\3\2\4\4\2\2\5\11\11\0\0\10\0\10\0\0\0\0\0\0\224A\14\207\212q\220\242%\221" |
||||
|
"\326\270\15B\20\230\233\65da\22Ima\250F\71\254\1C\20\210\212\247Fa\224\205Q\30\205Q" |
||||
|
"\230\304\1D\16\210\232qP\322(Gr \256\16\7E\15\207\212\361\222\14\247\65\335\222\246\2F\25" |
||||
|
"\230\233\221\14I\61I\206$\32\262D\11\325(\13\223H\12G\17\210\232U\34\242K\30\205\311t\10" |
||||
|
"\243\10H\14w\216\33\253\342\66\34\242!\2I\21\227\212\223%\303\240J\221\42I\221\24\251\303 J" |
||||
|
"\5\0z\1K\5\0\232\1\0\0\0"; |
Binary file not shown.
@ -0,0 +1,188 @@ |
|||||
|
STARTFONT 2.1 |
||||
|
COMMENT Exported by Fony v1.4.7 |
||||
|
FONT u8g2_font_symbols10_ahoy |
||||
|
SIZE 16 100 100 |
||||
|
FONTBOUNDINGBOX 12 15 0 -3 |
||||
|
STARTPROPERTIES 6 |
||||
|
COPYRIGHT "" |
||||
|
RESOLUTION_X 100 |
||||
|
RESOLUTION_Y 100 |
||||
|
FONT_ASCENT 13 |
||||
|
FONT_DESCENT 3 |
||||
|
DEFAULT_CHAR 0 |
||||
|
ENDPROPERTIES |
||||
|
CHARS 11 |
||||
|
STARTCHAR 065 |
||||
|
ENCODING 65 |
||||
|
SWIDTH 576 0 |
||||
|
DWIDTH 8 0 |
||||
|
BBX 7 11 0 0 |
||||
|
BITMAP |
||||
|
FE |
||||
|
92 |
||||
|
92 |
||||
|
54 |
||||
|
38 |
||||
|
10 |
||||
|
10 |
||||
|
10 |
||||
|
10 |
||||
|
10 |
||||
|
10 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 066 |
||||
|
ENCODING 66 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 8 9 0 1 |
||||
|
BITMAP |
||||
|
3C |
||||
|
42 |
||||
|
99 |
||||
|
24 |
||||
|
42 |
||||
|
18 |
||||
|
24 |
||||
|
00 |
||||
|
18 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 067 |
||||
|
ENCODING 67 |
||||
|
SWIDTH 792 0 |
||||
|
DWIDTH 11 0 |
||||
|
BBX 10 11 0 0 |
||||
|
BITMAP |
||||
|
0C00 |
||||
|
1200 |
||||
|
2100 |
||||
|
2100 |
||||
|
2100 |
||||
|
2180 |
||||
|
4080 |
||||
|
4080 |
||||
|
4080 |
||||
|
4080 |
||||
|
8040 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 068 |
||||
|
ENCODING 68 |
||||
|
SWIDTH 720 0 |
||||
|
DWIDTH 10 0 |
||||
|
BBX 9 11 0 0 |
||||
|
BITMAP |
||||
|
FF80 |
||||
|
6080 |
||||
|
3000 |
||||
|
1800 |
||||
|
0C00 |
||||
|
0C00 |
||||
|
1800 |
||||
|
3000 |
||||
|
6000 |
||||
|
C080 |
||||
|
FF80 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 069 |
||||
|
ENCODING 69 |
||||
|
SWIDTH 576 0 |
||||
|
DWIDTH 8 0 |
||||
|
BBX 7 11 0 0 |
||||
|
BITMAP |
||||
|
FE |
||||
|
D6 |
||||
|
D6 |
||||
|
7C |
||||
|
38 |
||||
|
10 |
||||
|
38 |
||||
|
38 |
||||
|
54 |
||||
|
54 |
||||
|
92 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 070 |
||||
|
ENCODING 70 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 8 10 1 0 |
||||
|
BITMAP |
||||
|
BD |
||||
|
42 |
||||
|
BD |
||||
|
24 |
||||
|
5A |
||||
|
18 |
||||
|
24 |
||||
|
24 |
||||
|
5A |
||||
|
81 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 071 |
||||
|
ENCODING 71 |
||||
|
SWIDTH 864 0 |
||||
|
DWIDTH 12 0 |
||||
|
BBX 11 11 0 0 |
||||
|
BITMAP |
||||
|
1100 |
||||
|
1100 |
||||
|
0E00 |
||||
|
D160 |
||||
|
2080 |
||||
|
2080 |
||||
|
2080 |
||||
|
D160 |
||||
|
0E00 |
||||
|
1100 |
||||
|
1100 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 072 |
||||
|
ENCODING 72 |
||||
|
SWIDTH 792 0 |
||||
|
DWIDTH 11 0 |
||||
|
BBX 10 11 0 0 |
||||
|
BITMAP |
||||
|
0080 |
||||
|
0080 |
||||
|
00C0 |
||||
|
00C0 |
||||
|
01C0 |
||||
|
01C0 |
||||
|
03C0 |
||||
|
0780 |
||||
|
1F80 |
||||
|
FF00 |
||||
|
3C00 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 073 |
||||
|
ENCODING 73 |
||||
|
SWIDTH 720 0 |
||||
|
DWIDTH 10 0 |
||||
|
BBX 9 11 0 0 |
||||
|
BITMAP |
||||
|
DD80 |
||||
|
FF80 |
||||
|
8080 |
||||
|
8880 |
||||
|
9880 |
||||
|
8880 |
||||
|
8880 |
||||
|
8880 |
||||
|
8880 |
||||
|
8080 |
||||
|
FF80 |
||||
|
ENDCHAR |
||||
|
STARTCHAR 074 |
||||
|
ENCODING 74 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 0 0 0 0 |
||||
|
BITMAP |
||||
|
ENDCHAR |
||||
|
STARTCHAR 075 |
||||
|
ENCODING 75 |
||||
|
SWIDTH 648 0 |
||||
|
DWIDTH 9 0 |
||||
|
BBX 0 0 0 0 |
||||
|
BITMAP |
||||
|
ENDCHAR |
||||
|
ENDFONT |
@ -0,0 +1,14 @@ |
|||||
|
/* |
||||
|
Fontname: u8g2_font_symbols10_ahoy |
||||
|
Copyright: |
||||
|
Glyphs: 11/11 |
||||
|
BBX Build Mode: 0 |
||||
|
*/ |
||||
|
const uint8_t u8g2_font_ncenB10_symbols10_ahoy[207] U8G2_FONT_SECTION("u8g2_font_ncenB10_symbols10_ahoy") = |
||||
|
"\13\0\3\2\4\4\2\2\5\13\13\0\0\13\0\13\0\0\0\0\0\0\266A\15\267\212q\220\42\251\322" |
||||
|
"\266\306\275\1B\20\230\236\65da\22Ima\250F\71\254\1C\23\272\272\251\3Q\32\366Q\212\243" |
||||
|
"\70\212\243\70\311\221\0D\20\271\252\361\242F:\242#: {\36\16\1E\22\267\212\361\222\14I\242" |
||||
|
"\14\332\232\216[RJ\232\12F\25\250\233\221\14I\61I\206$\252%J\250Fa\224%J\71G\30" |
||||
|
"\273\312W\316r`T\262DJ\303\64L#%K\304\35\310\342,\3H\27\272\272\217\344P\16\351\210" |
||||
|
"\16\354\300<\244C\70,\303 \16!\0I\24\271\252\241\34\336\1-\223\64-\323\62-\323\62\35x" |
||||
|
"\10J\5\0\232\1K\5\0\232\1\0\0\0"; |
Binary file not shown.
@ -0,0 +1,16 @@ |
|||||
|
Display_Mono_64x48: |
||||
|
u8g2_font_fur11_tr |
||||
|
u8g2_font_6x10_tf |
||||
|
u8g2_font_4x6_tr |
||||
|
|
||||
|
Display_Mono_128x32: |
||||
|
u8g2_font_9x15_tr |
||||
|
u8g2_font_tom_thumb_4x6_tr |
||||
|
|
||||
|
Display_Mono_84x48: |
||||
|
u8g2_font_5x8_symbols_ahoy |
||||
|
u8g2_font_logisoso16_tr |
||||
|
|
||||
|
Display_Mono_128x64: |
||||
|
u8g2_font_ncenB08_symbols8_ahoy |
||||
|
u8g2_font_ncenB10_symbols10_ahoy |
Loading…
Reference in new issue