source: umon/ports/beagleboneblack/fbidemo @ 9049385

Last change on this file since 9049385 was dee5246, checked in by Jarielle Catbagan <jcatbagan93@…>, on 06/19/15 at 18:53:54

Duplicated csb740 directory to beagleboneblack directory for BBB port

  • Property mode set to 100644
File size: 2.9 KB
Line 
1# This is a useful demo script to show off some of the functionality
2# of uMon's FBI interface...
3# It expects to find two files: fb/splash.bin and fb/umon1 that are
4# assumed to be two frame-buffer formatted images.
5#
6echo "Image file \#1: \c"
7read IMAGEFILE1
8echo "Image file \#2: \c"
9read IMAGEFILE2
10set FBICOLOR 0x005500
11
12fbi font 0 1 1 0xf0f0f0 0x101010
13fbi consolemode off
14fbi fill $IMAGEFILE1
15sleep 2
16
17fbi -t1 color $FBICOLOR
18fbi font 0 4 4 -- transparent
19fbi -o 1,0 print "MicroMonitor"
20fbi font 0 2 2 -- --
21fbi -o 7,3 print "(aka uMon)"
22fbi -o 2,5 print "FBI:"
23fbi -o 2,6 print "Frame Buffer Interface"
24fbi -o 2,7 print "*****    Demo    *****"
25sleep 2
26
27fbi -t2 color $FBICOLOR
28fbi font 0 1 1 -- --
29fbi -o 5,1 print "print small"
30sleep 1
31fbi font 0 3 3 -- --
32fbi -o 5,1 print "or..."
33sleep 1
34fbi font 0 7 7 -- --
35fbi -o 1,1 print "large"
36sleep 2
37
38fbi -t3 color $FBICOLOR
39fbi font 0 2 4 -- --
40sleep 1
41fbi -o 8,1 print "Independent"
42fbi -o 8,2 print "  x & y"
43fbi -o 8,3 print "dimensions..."
44sleep 1
45
46fbi -t1 color $FBICOLOR
47fbi font 0 5 1 -- --
48fbi -o 1,1 print "print wide"
49sleep 1
50fbi font 0 3 3 -- --
51fbi -o 3,3 print "or..."
52sleep 1
53fbi font 0 2 18 -- --
54fbi -o 15,0 print "tall"
55sleep 2
56
57fbi -t2 color $FBICOLOR
58fbi font 0 3 3 -- --
59fbi -o 3,2 print "or"
60sleep 1
61fbi -o 3,4 print "mix it up..."
62sleep 1
63
64fbi -t3 color $FBICOLOR
65fbi font 0 1 1 -- --
66fbi -o 0,1 print 1
67fbi font 0 1 2 -- --
68fbi print 2
69fbi font 0 1 3 -- --
70fbi print 3
71fbi font 0 1 4 -- --
72fbi print 4
73fbi font 0 1 5 -- --
74fbi print 5
75fbi font 0 1 6 -- --
76fbi print 6
77fbi font 0 1 7 -- --
78fbi print 7
79fbi font 0 1 8 -- --
80fbi print 8
81fbi font 0 1 9 -- --
82fbi print 9
83fbi font 0 2 9 -- --
84fbi -o 5,1 print 0
85fbi font 0 2 8 -- --
86fbi -o 6,1 print 9
87fbi font 0 3 7 -- --
88fbi -o 5,1 print 8
89fbi font 0 4 6 -- --
90fbi -o 5,1 print 7
91fbi font 0 5 5 -- --
92fbi -o 5,1 print 6
93fbi font 0 6 4 -- --
94fbi -o 5,1 print 5
95fbi font 0 7 3 -- --
96fbi -o 5,1 print 4
97fbi font 0 8 2 -- --
98fbi -o 5,1 print 3
99fbi font 0 9 1 -- --
100fbi -o 5,1 print 2
101fbi font 0 10 1 -- --
102fbi -o 5,0 print 1
103sleep 4
104
105fbi -t1 color $FBICOLOR
106fbi font 0 3 3 -- --
107fbi -o 3,1 print "or"
108sleep 1
109fbi -o 3,3 print "console mode..."
110fbi -o 3,4 print "(normal font)"
111sleep 2
112
113fbi font 0 1 1 -- --
114fbi consolemode on
115echo uMON\>
116sleep 1
117tfs ls
118echo uMON\>
119sleep 1
120tfs cat monrc
121echo uMON\>
122sleep 1
123fbi consolemode off
124
125fbi -t2 color $FBICOLOR
126fbi font 0 3 3 -- --
127fbi consolemode on
128fbi -o 3,1 print "or"
129sleep 1
130fbi -o 3,3 print "console mode..."
131fbi -o 3,4 print "(taller font)"
132sleep 2
133fbi consolemode off
134
135fbi font 0 1 2 -- --
136fbi consolemode on
137echo uMON\>
138sleep 1
139tfs ls
140echo uMON\>
141sleep 1
142tfs cat monrc
143echo uMON\>
144sleep 1
145fbi font 0 1 1 -- --
146fbi consolemode off
147
148
149# SPLASHLOOPINIT:
150set TTYPE 1
151
152# SPLASHLOOP:
153if $TTYPE gt 3 goto SPLASHLOOPINIT
154if -tgc exit
155fbi -t $TTYPE fill $IMAGEFILE1
156if -tgc exit
157sleep 2
158if -tgc exit
159fbi -t $TTYPE fill $IMAGEFILE2
160set TTYPE=$TTYPE+1
161sleep 2
162if -tgc exit
163goto SPLASHLOOP
Note: See TracBrowser for help on using the repository browser.