PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Robotics
Arlo
libarlodrive
libarlodrive.c
1
//#define ARLO_DEBUG
2
//#define XBEE_TERMINAL
3
4
/*
5
6
======================[ TO-DO ]======================
7
( ) Update defaults from DHB-10 docs
8
( ) Handle no reply with power off to DHB10
9
( ) Compiler warning in drive_getTicks & getSpeed about
10
sscan(dhb10_reply, "%d%d", left, right)
11
=====================================================
12
13
*/
14
15
#include "
simpletools.h
"
16
#include "
fdserial.h
"
17
#include "arlodrive.h"
18
19
fdserial
*term;
20
21
int
main
()
22
{
23
#ifdef ARLO_DEBUG
24
simpleterm_close
();
25
pause
(10);
26
#ifdef XBEE_TERMINAL
27
term =
fdserial_open
(9, 8, 0, 9600);
28
#else
29
term =
fdserial_open
(31, 30, 0, 115200);
30
#endif
31
#endif
32
33
dhb10_terminal(term);
34
}
35
pause
void pause(int time)
Delay cog from moving on to the next statement for a certain length of time.
Definition:
libws2812.c:125
fdserial_open
fdserial * fdserial_open(int rxpin, int txpin, int mode, int baudrate)
Open a full duplex serial connection.
Definition:
fdserial.c:20
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
simpleterm_close
void simpleterm_close(void)
Closes the SimpleIDE Terminal connection in one cog so that it can be opened in another cog with simp...
Definition:
simpleterm_close.c:19
main
int main(void)
Definition:
GraphicsTest.c:20
text_struct
Structure that contains data used by simple text device libraries.
Definition:
simpletext.h:81
fdserial.h
This library supports creating and managing one or more full duplex serial connections with periphera...
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17