Drop £ from text demo

£ is not an ASCII character and resulted in out of range mystery memory garbage being displayed.
pull/70/head
Phil Howard 2021-02-23 22:09:06 +00:00
rodzic b2027de7fc
commit 879bb673f5
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -29,10 +29,10 @@ int main() {
pico_explorer.set_pen(255, 255, 255);
pico_explorer.set_font(&font6);
pico_explorer.text("6x6: The quick, brown fox jumps over the lazy dog! UPPER. lower.", Point(10, 10), 220);
pico_explorer.text("0123456789 !£$%^&*()", Point(10, 70), 220);
pico_explorer.text("0123456789 !$%^&*()", Point(10, 70), 220);
pico_explorer.set_font(&font8);
pico_explorer.text("6x8: The quick, brown fox jumps over the lazy dog! UPPER. lower.", Point(10, 120), 220);
pico_explorer.text("0123456789 !£$%^&*()", Point(10, 180), 220);
pico_explorer.text("0123456789 !$%^&*()", Point(10, 180), 220);
pico_explorer.update();

Wyświetl plik

@ -105,7 +105,7 @@ const pimoroni::Font font6 {
0x36,0x08,0x08,0x36,0x00,0x00, // x
0x26,0x28,0x28,0x1e,0x00,0x00, // y
0x32,0x2a,0x2a,0x26,0x00,0x00, // z
0x08,0x3e,0x22,0x00,0x00,0x00, // 0x
0x08,0x3e,0x22,0x00,0x00,0x00, // {
0x3e,0x00,0x00,0x00,0x00,0x00, // |
0x22,0x3e,0x08,0x00,0x00,0x00, // }
0x04,0x02,0x02,0x00,0x00,0x00, // ~