File tree Expand file tree Collapse file tree 3 files changed +83
-0
lines changed
Expand file tree Collapse file tree 3 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "transfer_files" : [
3+ " bin/DEMO.8xp"
4+ ],
5+ "target" : {
6+ "name" : " DEMO" ,
7+ "isASM" : true
8+ },
9+ "sequence" : [
10+ " action|launch" ,
11+ " delay|200" ,
12+ " hashWait|1" ,
13+ " key|enter" ,
14+ " delay|300" ,
15+ " hashWait|2"
16+ ],
17+ "hashes" : {
18+ "1" : {
19+ "description" : " Show Hello World message" ,
20+ "start" : " vram_start" ,
21+ "size" : " vram_8_size" ,
22+ "expected_CRCs" : [
23+ " BA7F449D"
24+ ]
25+ },
26+ "2" : {
27+ "description" : " Exit" ,
28+ "start" : " vram_start" ,
29+ "size" : " vram_16_size" ,
30+ "expected_CRCs" : [
31+ " FFAF89BA" ,
32+ " 101734A5" ,
33+ " 9DA19F44" ,
34+ " A32840C8" ,
35+ " 349F4775"
36+ ]
37+ }
38+ }
39+ }
Original file line number Diff line number Diff line change 1+ # ----------------------------
2+ # Makefile Options
3+ # ----------------------------
4+
5+ NAME = DEMO
6+ ICON = icon.png
7+ DESCRIPTION = "CE C Toolchain Demo"
8+ COMPRESSED = NO
9+ ARCHIVED = NO
10+
11+ CFLAGS = -Wall -Wextra -Oz
12+ CXXFLAGS = -Wall -Wextra -Oz
13+
14+ # ----------------------------
15+
16+ include $(shell cedev-config --makefile)
Original file line number Diff line number Diff line change 1+ #include <ti/screen.h>
2+ #include <ti/getcsc.h>
3+ #include <graphx.h>
4+
5+ int main (void )
6+ {
7+ bool clip = false;
8+
9+ gfx_Begin ();
10+
11+ gfx_FillScreen (0x07 );
12+ gfx_SetTransparentColor (0x18 );
13+ gfx_SetTextTransparentColor (0xE0 );
14+ gfx_SetTextBGColor (0x18 );
15+ gfx_SetTextFGColor (0xE0 );
16+
17+ for (const char * c = "Hello, world!" ; * c != '\0' ; ++ c , clip = !clip )
18+ {
19+ gfx_SetTextConfig (clip ? gfx_text_clip : gfx_text_noclip );
20+ gfx_PrintChar (* c );
21+ }
22+
23+ while (!os_GetCSC ());
24+
25+ gfx_End ();
26+
27+ return 0 ;
28+ }
You can’t perform that action at this time.
0 commit comments