PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Motor
libservoAux
libservoAux.c
1
/*
2
* @file libservoAux.c
3
*
4
* @author Andy Lindsay
5
*
6
* @copyright
7
* Copyright (C) Parallax, Inc. 2013. All Rights MIT Licensed.
8
*
9
* @brief Project and test harness for the servoAux library for standard servoAuxs.
10
*/
11
12
void
pulse_outCtr(
int
pin,
int
time);
13
14
#include "
servoAux.h
"
15
//#include "servo.h"
16
#include "
simpletools.h
"
17
18
int
main
()
19
{
20
servoAux_angle
(0, 0);
21
servoAux_angle
(1, 100);
22
servoAux_angle
(2, 200);
23
servoAux_angle
(3, 300);
24
servoAux_angle
(4, 400);
25
servoAux_angle
(5, 500);
26
servoAux_angle
(6, 600);
27
servoAux_angle
(7, 700);
28
servoAux_angle
(8, 800);
29
servoAux_angle
(9, 900);
30
servoAux_angle
(10, 1000);
31
servoAux_angle
(11, 1100);
32
servoAux_angle
(12, 1200);
33
servoAux_angle
(13, 1300);
34
//servo_speed(14, 0);
35
//servo_speed(15, 0);
36
}
servoAux.h
If the servo library is already busy with 14 servos, you can use this library to control up to 14 mor...
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
main
int main(void)
Definition:
GraphicsTest.c:20
servoAux_angle
int servoAux_angle(int pin, int degreeTenths)
Set Parallax Standard Servo to angle from 0 to 180 in tenths of a degree.
Definition:
servoAux.c:45
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17