diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index bdcf32b..166ddae 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
Please ensure to specify the following:
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
-* `Arduino mbed_rp2040` Core Version (e.g. Arduino mbed_rp2040 core v2.8.0) or `RP2040` Core Version (e.g. RP2040 core v1.13.0)
+* `Arduino mbed_rp2040` Core Version (e.g. Arduino mbed_rp2040 core v3.0.1) or `RP2040` Core Version (e.g. RP2040 core v1.13.2)
* `RP2040` Board type (e.g. Nano_RP2040_Connect, RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040, GENERIC_RP2040, etc.)
* Contextual information (e.g. what you were trying to achieve)
* Simplest possible steps to reproduce
@@ -28,10 +28,10 @@ Please ensure to specify the following:
```
Arduino IDE version: 1.8.19
-Arduino mbed_rp2040 core v2.8.0
+Arduino mbed_rp2040 core v3.0.1
RASPBERRY_PI_PICO board
OS: Ubuntu 20.04 LTS
-Linux kh-inspiron-3593 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
+Linux kh-inspiron-3593 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered a crash while trying to use the Timer Interrupt.
diff --git a/README.md b/README.md
index 3cae854..30c34a4 100644
--- a/README.md
+++ b/README.md
@@ -103,8 +103,8 @@ This library enables you to use `1 Hardware Timer` on an RP2040-based board to c
## Prerequisites
1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
-2. [`Arduino mbed_rp2040 core 2.8.0+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
-3. [`Earle Philhower's arduino-pico core v1.13.0+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
+2. [`Arduino mbed_rp2040 core 3.0.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
+3. [`Earle Philhower's arduino-pico core v1.13.2+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
---
@@ -364,7 +364,7 @@ https://github.com/khoih-prog/RP2040_ISR_Servo/blob/39e160439b9b4e7c5238202379bd
```
Starting RP2040_MultipleRandomServos on Mbed RaspberryPi Pico
-Mbed RP2040_ISR_Servo v1.1.1
+Mbed RP2040_ISR_Servo v1.1.2
Setup OK Servo index = 0
Setup OK Servo index = 1
Setup OK Servo index = 2
@@ -408,7 +408,7 @@ Servos idx = 5, act. pos. (deg) = 800, pulseWidth (us) = 800
```
Starting RP2040_MultipleRandomServos on RaspberryPi Pico
-RP2040_ISR_Servo v1.1.1
+RP2040_ISR_Servo v1.1.2
Setup OK Servo index = 0
Setup OK Servo index = 1
Setup OK Servo index = 2
@@ -453,7 +453,7 @@ Servos idx = 5, act. pos. (deg) = 800, pulseWidth (us) = 800
```
Starting RP2040_MultipleServos on RASPBERRY_PI_PICO
-RP2040_ISR_Servo v1.1.1
+RP2040_ISR_Servo v1.1.2
Setup OK Servo index = 0
Setup OK Servo index = 1
Setup OK Servo index = 2
@@ -510,6 +510,8 @@ Submit issues to: [RP2040_ISR_Servo issues](https://github.com/khoih-prog/RP2040
5. Convert to `h-only` style
6. Add example [multiFileProject](examples/multiFileProject) to demo for multiple-file project
7. Optimize code by using passing by `reference` instead of by `value
+8. Permit using servos with different pulse ranges simultaneously
+
---
---
@@ -519,10 +521,12 @@ Submit issues to: [RP2040_ISR_Servo issues](https://github.com/khoih-prog/RP2040
Many thanks for everyone for bug reporting, new feature suggesting, testing and contributing to the development of this library. Especially to these people who have directly or indirectly contributed to this [RP2040_ISR_Servo library](https://github.com/khoih-prog/RP2040_ISR_Servo)
1. Thanks to [Radek Voltr](https://github.com/RadekVoltr) for the PR [**setPulseWidth - removed wrong map** #2](https://github.com/khoih-prog/RP2040_ISR_Servo/pull/2), leading to new version v1.1.0
+2. Thanks to [Samt43](https://github.com/Samt43) for the PR [**Fix Bug #5 : Permit using servos with different pulse ranges simultaneously** #4](https://github.com/khoih-prog/RP2040_ISR_Servo/pull/4), leading to new version v1.1.2
diff --git a/changelog.md b/changelog.md
index f698b8a..65123f3 100644
--- a/changelog.md
+++ b/changelog.md
@@ -12,6 +12,7 @@
## Table of Contents
* [Changelog](#changelog)
+ * [Releases v1.1.2](#releases-v112)
* [Releases v1.1.1](#releases-v111)
* [Releases v1.1.0](#releases-v111)
* [Releases v1.0.1](#releases-v101)
@@ -22,6 +23,11 @@
## Changelog
+### Releases v1.1.2
+
+1. Permit using servos with different pulse ranges simultaneously. Check [Fix Bug #5 : Permit using servos with different pulse ranges simultaneously #4](https://github.com/khoih-prog/RP2040_ISR_Servo/pull/4)
+
+
### Releases v1.1.1
1. Delete redundant `.cpp` file causing compile error
diff --git a/library.json b/library.json
index c6cdced..3e6c95b 100644
--- a/library.json
+++ b/library.json
@@ -1,8 +1,8 @@
{
"name": "RP2040_ISR_Servo",
- "version": "1.1.1",
+ "version": "1.1.2",
"keywords": "timing, device, control, timer, interrupt, isr, isr-based, hardware-timer, mission-critical, accuracy, precise, non-blocking, mbed, rpi-pico, rp2040, nano-rp2040-connect, servo",
- "description": "This library enables you to use 1 Hardware Timer on RP2040-based board, such as Nano_RP2040_Connect, RASPBERRY_PI_PICO, to control up to 16 or more servo motors.",
+ "description": "This library enables you to use 1 Hardware Timer on RP2040-based board, such as Nano_RP2040_Connect, RASPBERRY_PI_PICO, to control up to 16 or more servo motors. Now permitting using servos with different pulse ranges simultaneously",
"authors":
{
"name": "Khoi Hoang",
diff --git a/library.properties b/library.properties
index 18f1b32..cb12934 100644
--- a/library.properties
+++ b/library.properties
@@ -1,10 +1,10 @@
name=RP2040_ISR_Servo
-version=1.1.1
+version=1.1.2
author=Khoi Hoang
maintainer=Khoi Hoang
license=MIT
sentence=This library enables you to use Interrupt from Hardware Timers on RP2040 board to control multiple servo motors.
-paragraph=This library enables you to use 1 Hardware Timer on RP2040-based board, such as Nano_RP2040_Connect, RASPBERRY_PI_PICO, to control up to 16 or more servo motors.
+paragraph=This library enables you to use 1 Hardware Timer on RP2040-based board, such as Nano_RP2040_Connect, RASPBERRY_PI_PICO, to control up to 16 or more servo motors. Now permitting using servos with different pulse ranges simultaneously.
category=Device Control
url=https://github.com/khoih-prog/RP2040_ISR_Servo
architectures=mbed_rp2040, mbed_nano, rp2040
diff --git a/src/RP2040_ISR_Servo.h b/src/RP2040_ISR_Servo.h
index 40dc605..377a8f5 100644
--- a/src/RP2040_ISR_Servo.h
+++ b/src/RP2040_ISR_Servo.h
@@ -9,7 +9,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_ISR_Servo
Licensed under MIT license
- Version: 1.1.1
+ Version: 1.1.2
Version Modified By Date Comments
------- ----------- ---------- -----------
@@ -17,6 +17,7 @@
1.0.1 K Hoang 22/10/2021 Fix platform in library.json for PIO
1.1.0 K Hoang 27/02/2022 Fix setPulseWidth() bug. Convert to h-only style
1.1.1 K Hoang 08/03/2022 Delete redundant `.cpp` file causing compile error
+ 1.1.2 K Hoang 08/03/2022 Permit using servos with different pulse ranges simultaneously
*****************************************************************************************************************************/
#pragma once
diff --git a/src/RP2040_ISR_Servo.hpp b/src/RP2040_ISR_Servo.hpp
index 018e98e..0cf8d1b 100644
--- a/src/RP2040_ISR_Servo.hpp
+++ b/src/RP2040_ISR_Servo.hpp
@@ -5,11 +5,10 @@
- RP2040-based boards such as RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040 using arduino_pico core
Written by Khoi Hoang
-
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_ISR_Servo
Licensed under MIT license
-
- Version: 1.1.1
+
+ Version: 1.1.2
Version Modified By Date Comments
------- ----------- ---------- -----------
@@ -17,6 +16,7 @@
1.0.1 K Hoang 22/10/2021 Fix platform in library.json for PIO
1.1.0 K Hoang 27/02/2022 Fix setPulseWidth() bug. Convert to h-only style
1.1.1 K Hoang 08/03/2022 Delete redundant `.cpp` file causing compile error
+ 1.1.2 K Hoang 08/03/2022 Permit using servos with different pulse ranges simultaneously
*****************************************************************************************************************************/
#pragma once
@@ -27,12 +27,12 @@
#if ( defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || \
defined(ARDUINO_GENERIC_RP2040) ) && !defined(ARDUINO_ARCH_MBED)
- #define RP2040_ISR_SERVO_VERSION "RP2040_ISR_Servo v1.1.1"
+ #define RP2040_ISR_SERVO_VERSION "RP2040_ISR_Servo v1.1.2"
#elif ( defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || \
defined(ARDUINO_GENERIC_RP2040) ) && defined(ARDUINO_ARCH_MBED)
- #define RP2040_ISR_SERVO_VERSION "Mbed RP2040_ISR_Servo v1.1.1"
+ #define RP2040_ISR_SERVO_VERSION "Mbed RP2040_ISR_Servo v1.1.2"
#else
#error This code is intended to run on the mbed / non-mbed RP2040 platform! Please check your Tools->Board setting.
@@ -40,9 +40,9 @@
#define RP2040_ISR_SERVO_VERSION_MAJOR 1
#define RP2040_ISR_SERVO_VERSION_MINOR 1
-#define RP2040_ISR_SERVO_VERSION_PATCH 1
+#define RP2040_ISR_SERVO_VERSION_PATCH 2
-#define RP2040_ISR_SERVO_VERSION_INT 1001001
+#define RP2040_ISR_SERVO_VERSION_INT 1001002
#include
diff --git a/src/RP2040_ISR_Servo_Debug.h b/src/RP2040_ISR_Servo_Debug.h
index aa22db8..aa5b208 100644
--- a/src/RP2040_ISR_Servo_Debug.h
+++ b/src/RP2040_ISR_Servo_Debug.h
@@ -9,7 +9,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_ISR_Servo
Licensed under MIT license
- Version: 1.1.1
+ Version: 1.1.2
Version Modified By Date Comments
------- ----------- ---------- -----------
@@ -17,6 +17,7 @@
1.0.1 K Hoang 22/10/2021 Fix platform in library.json for PIO
1.1.0 K Hoang 27/02/2022 Fix setPulseWidth() bug. Convert to h-only style
1.1.1 K Hoang 08/03/2022 Delete redundant `.cpp` file causing compile error
+ 1.1.2 K Hoang 08/03/2022 Permit using servos with different pulse ranges simultaneously
*****************************************************************************************************************************/
#pragma once
diff --git a/src/RP2040_ISR_Servo_Impl.h b/src/RP2040_ISR_Servo_Impl.h
index 48abc0a..84e60d8 100644
--- a/src/RP2040_ISR_Servo_Impl.h
+++ b/src/RP2040_ISR_Servo_Impl.h
@@ -5,11 +5,10 @@
- RP2040-based boards such as RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040 using arduino_pico core
Written by Khoi Hoang
-
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_ISR_Servo
Licensed under MIT license
-
- Version: 1.1.1
+
+ Version: 1.1.2
Version Modified By Date Comments
------- ----------- ---------- -----------
@@ -17,6 +16,7 @@
1.0.1 K Hoang 22/10/2021 Fix platform in library.json for PIO
1.1.0 K Hoang 27/02/2022 Fix setPulseWidth() bug. Convert to h-only style
1.1.1 K Hoang 08/03/2022 Delete redundant `.cpp` file causing compile error
+ 1.1.2 K Hoang 08/03/2022 Permit using servos with different pulse ranges simultaneously
*****************************************************************************************************************************/
#pragma once