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
XBee UART Loopback.c
1
/*
2
XBee UART Loopback.c
3
4
Demonstrates using full duplex serial communication to exchange information
5
with an XBee Series 1 radio.
6
7
http://learn.parallax.com/propeller-c-simple-protocols/full-duplex-serial
8
*/
9
10
#include "simpletools.h"
11
#include "fdserial.h"
12
13
fdserial
*xbee;
14
15
int
main
()
16
{
17
xbee = fdserial_open(9, 8, 0, 9600);
18
19
writeChar(xbee, CLS);
20
dprint(xbee,
"Click this terminal, \n"
);
21
dprint(xbee,
"and type on keybaord...\n\n"
);
22
23
char
c;
24
25
while
(1)
26
{
27
c = fdserial_rxChar(xbee);
28
if
(c != -1)
29
{
30
dprint(xbee,
"You typed: %c\n"
, c);
31
}
32
}
33
}
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