PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Examples
Devices
Display
Hello VGA.c
1
/*
2
Hello VGA.c
3
4
Test some of the vgatext library's features with a VGA display.
5
6
http://learn.parallax.com/propeller-c-simple-devices/vga-text-display
7
*/
8
9
#include "simpletools.h"
// Library includes
10
#include "vgatext.h"
11
12
vgatext
*vga;
// VGA identifier
13
14
int
main
(
void
)
// Main function
15
{
16
vga = vgatext_open(0);
// Open VGA port with P0 base
17
18
dprint(vga,
"Hello VGA.\n"
);
// Message + newline
19
dprint(vga,
"Hello again!\n"
);
// Another message
20
21
vgatext_setXY(3, 4);
// Set position
22
vgatext_setColors(5);
// Set color palette
23
24
dprint(vga,
"* <- x=3 y=4 color=5"
);
// Text at position in palette
25
}
26
main
int main(void)
Definition:
GraphicsTest.c:20
text_struct
Structure that contains data used by simple text device libraries.
Definition:
simpletext.h:70
Generated on Sat Aug 27 2016 00:58:03 for PropWare by
1.8.12