PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Examples
Robots
Arlo
Arlo - Control System Adjustments.c
1
/*
2
Arlo - Control System Adjustments.c
3
*/
4
5
#include "
simpletools.h
"
6
#include "arlodrive.h"
7
8
char
*reply;
9
10
int
main
()
11
{
12
print
(
"CHECK CONSTANTS\n\n"
);
13
print
(
"To DHB-10 From DHB-10\n"
);
14
print
(
"----------- ----------------\n"
);
15
16
print
(
"KI\\r "
);
17
reply = dhb10_com(
"KI\r"
);
18
if
(*reply ==
'\r'
)
print
(
"\\r\n"
);
19
else
print
(
"%s"
, reply);
20
21
print
(
"DZ\\r "
);
22
reply = dhb10_com(
"DZ\r"
);
23
if
(*reply ==
'\r'
)
print
(
"\\r\n"
);
24
else
print
(
"%s"
, reply);
25
26
print
(
"\n\nSET CONSTANTS\n\n"
);
27
print
(
"To DHB-10 From DHB-10\n"
);
28
print
(
"----------- ----------------\n"
);
29
30
print
(
"KI 65\\r "
);
31
reply = dhb10_com(
"KI 65\r"
);
32
if
(*reply ==
'\r'
)
print
(
"\\r\n"
);
33
else
print
(
"%s\n"
, reply);
34
35
print
(
"DZ 1\\r "
);
36
reply = dhb10_com(
"DZ 1\r"
);
37
if
(*reply ==
'\r'
)
print
(
"\\r\n"
);
38
else
print
(
"%s\n"
, reply);
39
40
41
print
(
"\n\nSTORE CONSTANTS\n\n"
);
42
print
(
"To DHB-10 From DHB-10\n"
);
43
print
(
"----------- ----------------\n"
);
44
45
print
(
"STORE KI\\r "
);
46
reply = dhb10_com(
"STORE KI\r"
);
47
if
(*reply ==
'\r'
)
print
(
"\\r\n"
);
48
else
print
(
"%s\n"
, reply);
49
50
print
(
"STORE DZ\\r "
);
51
reply = dhb10_com(
"STORE DZ\r"
);
52
if
(*reply ==
'\r'
)
print
(
"\\r\n"
);
53
else
print
(
"%s\n"
, reply);
54
55
print
(
"\nAll done!\n"
);
56
}
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
print
int print(const char *format,...) __attribute__((format(printf
Print format "..." args to the default simple terminal device. The output is limited to 256 bytes.
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17