-
Notifications
You must be signed in to change notification settings - Fork 0
/
example1.cc
59 lines (53 loc) · 964 Bytes
/
example1.cc
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
Example 35.1 - arduino-tvout text demonstration
http://tronixstuff.wordpress.com/tutorials > chapter 35 | CC by-sa-nc
*/
#include <TVout.h>
#include <fontALL.h>
TVout TV;
int d=10; // for delay purposes
char c='X';
void setup()
{
TV.begin(_PAL); // for PAL system
TV.clear_screen();
}
void loop()
{
TV.select_font(font4x6);
for (int a=0; a<6; a++)
{
for (int b=0; b<128; b++)
{
TV.print_char(b,a*6,c);
delay(d);
TV.clear_screen();
}
}
delay(1000);
TV.clear_screen();
TV.select_font(font6x8);
for (int a=0; a<6; a++)
{
for (int b=0; b<128; b++)
{
TV.print_char(b,a*8,c);
delay(d);
TV.clear_screen();
}
}
delay(1000);
TV.clear_screen();
TV.select_font(font8x8);
for (int a=0; a<6; a++)
{
for (int b=0; b<128; b++)
{
TV.print_char(b,a*8,c);
delay(d);
TV.clear_screen();
}
}
delay(1000);
TV.clear_screen();
}