forked from JonathSpirit/PicoScreenTerminal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
35 lines (28 loc) · 698 Bytes
/
Copy pathmain.cpp
File metadata and controls
35 lines (28 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream>
#include <vector>
#include "pico/stdlib.h"
#include "C_screen.hpp"
int main()
{
unsigned char i=0;
Image testImage({2,2});
testImage.set({0,0}, 219);//201
testImage.set({1,0}, 219);//187
testImage.set({0,1}, 219);//200
testImage.set({1,1}, 219);//188
Screen screen({20,20});
stdio_init_all();
while (true)
{
screen.set({0,0}, i+'0');
screen.setString({3,2}, "Bonjour UwU");
screen.setImage({5,5}, testImage);
if (++i > 9)
{
i=0;
}
screen.draw();
sleep_ms(1000);
}
return 0;
}