Skip to content

Commit 4b73026

Browse files
committed
Servo library to format 1.5 rev.2
1 parent 03a7cf3 commit 4b73026

File tree

6 files changed

+626
-620
lines changed

6 files changed

+626
-620
lines changed

libraries/Servo/library.properties

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name=Servo
2-
author=
3-
email=
2+
version=1.0
3+
author=Michael Margolis, Arduino
4+
maintainer=Arduino <info@arduino.cc>
45
sentence=Controls a lot of Servos.
56
paragraph=This library can control a great number of servos.<br />It makes careful use of timers: the library can control 12 servos using only 1 timer.<br />On the Arduino Due you can control up to 60 servos.<br />
67
url=http://arduino.cc/en/Reference/Servo
78
architectures=avr,sam
8-
version=1.0
9-
dependencies=
10-
core-dependencies=arduino (>=1.5.0)

libraries/Servo/src/Servo.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@
5959
*/
6060

6161
// Architecture specific include
62-
#include <ServoTimers.h>
62+
#if defined(ARDUINO_ARCH_AVR)
63+
#include "avr/ServoTimers.h"
64+
#elif defined(ARDUINO_ARCH_SAM)
65+
#include "sam/ServoTimers.h"
66+
#else
67+
#error "This library only supports boards with an AVR or SAM processor."
68+
#endif
6369

6470
#define Servo_VERSION 2 // software version of this library
6571

0 commit comments

Comments
 (0)