Skip to content

Commit

Permalink
Merge branch 'release/1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dadul96 committed Oct 14, 2019
2 parents 5a44675 + 7e798fc commit 701a713
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Servo Hardware PWM
version=1.2.0
version=1.2.1
author=Daniel Duller <[email protected]>
maintainer=Daniel Duller <[email protected]>
sentence=Allows Arduino/Genuino Mega boards to control up to 6 servos with the integrated 16-bit hardware PWM timer/counter.
Expand Down
2 changes: 1 addition & 1 deletion src/Servo_Hardware_PWM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
For information about the library, license and author, see Servo_Hardware_PWM.h - file.
*/

#if defined(ARDUINO_ARCH_AVR)
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)

#include <Arduino.h>
#include <Servo_Hardware_PWM.h>
Expand Down
10 changes: 6 additions & 4 deletions src/Servo_Hardware_PWM.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Servo_Hardware_PWM.h - This Library allows Arduino/Genuino Mega boards to control up to 6 servos with the integrated 16-bit hardware PWM timer/counter.
Created by Daniel Duller, 11. January, 2019.
Changed by Daniel Duller, 11. October, 2019.
Changed by Daniel Duller, 14. October, 2019.
###############################################################################
MIT License
Expand Down Expand Up @@ -67,11 +67,13 @@

#include <inttypes.h>

#if !defined(ARDUINO_ARCH_AVR)
#error "This library only supports boards with an AVR processor."
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#warning "INFO: Servos can only be connected to the following pins: 2, 3, 7, 8, 44, and 45"
#else
#error "ERROR: This library only supports boards with an ATmega1280 or ATmega2560 processor. (Arduino/Genuino Mega/Mega1280/Mega2560)"
#endif

#define Servo_VERSION 1.0.1 //software version of this library
#define Servo_VERSION 1.2.1 //software version of this library

#define MIN_PULSE_WIDTH 500 //the shortest pulse sent to a servo
#define MAX_PULSE_WIDTH 2500 //the longest pulse sent to a servo
Expand Down

0 comments on commit 701a713

Please sign in to comment.