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
Protocols
Hello Serial LCD.c
1
/*
2
Hello Serial LCD.c
3
4
Demonstrates using half duplex serial communication to control a Parallax
5
Serial LCD.
6
7
http://learn.parallax.com/propeller-c-simple-protocols/half-duplex-serial
8
*/
9
10
#include "simpletools.h"
11
12
serial
*lcd;
13
14
const
int
ON
= 22;
15
const
int
CLR = 12;
16
17
int
main
()
18
{
19
lcd = serial_open(12, 12, 0, 9600);
20
21
writeChar(lcd,
ON
);
22
writeChar(lcd, CLR);
23
pause(5);
24
dprint(lcd,
"Hello LCD!!!"
);
25
}
ON
#define ON
ON can be used in place of a nonzero value to enabled parameters in functions like drive_feedback and...
Definition:
abdrive.h:147
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