kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Use both fonts simultaneously in text demo
rodzic
4e8b2f6d1f
commit
31b244a43d
|
@ -4,6 +4,7 @@
|
|||
#include <cstdlib>
|
||||
|
||||
#include "pico_explorer.hpp"
|
||||
#include "font6_data.hpp"
|
||||
#include "font8_data.hpp"
|
||||
#include "msa301.hpp"
|
||||
|
||||
|
@ -26,7 +27,10 @@ int main() {
|
|||
pico_explorer.clear();
|
||||
|
||||
pico_explorer.set_pen(255, 255, 255);
|
||||
pico_explorer.text("Hello World. How are you today?", Point(10, 190), 100);
|
||||
pico_explorer.set_font(&font6);
|
||||
pico_explorer.text("6x6: Hello World. How are you today?", Point(10, 10), 220);
|
||||
pico_explorer.set_font(&font8);
|
||||
pico_explorer.text("6x8: Hello World. How are you today?", Point(10, 120), 220);
|
||||
|
||||
pico_explorer.update();
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue