Skip to content

Commit d117a7a

Browse files
committed
Fix Firmata compatibility
1 parent 5315f3c commit d117a7a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name=Servo
22
version=1.1.2
33
author=Michael Margolis, Arduino
44
maintainer=Arduino <[email protected]>
5-
sentence=Allows Arduino/Genuino boards to control a variety of servo motors.
5+
sentence=Allows Arduino/Genuino boards to control a variety of servo motors.
66
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 />
77
category=Device Control
88
url=http://www.arduino.cc/en/Reference/Servo
9-
architectures=avr,sam,samd
9+
architectures=avr,sam,samd,stm32f4

src/STM32F4/ServoTimers.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
// Pin number of unattached pins
6666
#define NOT_ATTACHED (-1)
6767

68+
#define _Nbr_16timers 14 // mumber of STM32F469 Timers
69+
#define SERVOS_PER_TIMER 4 // Number of timer channels
70+
71+
6872
// Default min/max pulse widths (in microseconds) and angles (in
6973
// degrees). Values chosen for Arduino compatibility. These values
7074
// are part of the public API; DO NOT CHANGE THEM.

0 commit comments

Comments
 (0)