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
Simple Libraries
Sensor
libcolorpal
libcolorpal.c
1
/*
2
libcolorpal.c
3
colorpal library test harness.
4
ColorPAL SIO pin connected to Propeller P6.
5
*/
6
7
8
#include "simpletools.h"
9
#include "colorpal.h"
10
11
int
cpSIO = 6;
12
int
r, g, b;
13
colorPal
*cpal;
14
15
int
main
()
16
{
17
cpal = colorPal_open(cpSIO);
18
while
(1)
19
{
20
colorPal_getRGB(cpal, &r, &g, &b);
21
print(
"r = %03x g = %03x b = %03x\n"
,
22
r, g, b);
23
pause(1000);
24
}
25
}
26
27
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:09 for PropWare by
1.8.12