Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 24a7bc6

Browse files
authored
v1.1.2 to fix bug #5
### 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](#4)
1 parent 8e87689 commit 24a7bc6

File tree

9 files changed

+36
-24
lines changed

9 files changed

+36
-24
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

1717
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* `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)
18+
* `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)
1919
* `RP2040` Board type (e.g. Nano_RP2040_Connect, RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040, GENERIC_RP2040, etc.)
2020
* Contextual information (e.g. what you were trying to achieve)
2121
* Simplest possible steps to reproduce
@@ -28,10 +28,10 @@ Please ensure to specify the following:
2828

2929
```
3030
Arduino IDE version: 1.8.19
31-
Arduino mbed_rp2040 core v2.8.0
31+
Arduino mbed_rp2040 core v3.0.1
3232
RASPBERRY_PI_PICO board
3333
OS: Ubuntu 20.04 LTS
34-
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
34+
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
3535
3636
Context:
3737
I encountered a crash while trying to use the Timer Interrupt.

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ This library enables you to use `1 Hardware Timer` on an RP2040-based board to c
103103
## Prerequisites
104104

105105
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)
106-
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)
107-
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)
106+
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)
107+
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)
108108

109109
---
110110

@@ -364,7 +364,7 @@ https://github.com/khoih-prog/RP2040_ISR_Servo/blob/39e160439b9b4e7c5238202379bd
364364

365365
```
366366
Starting RP2040_MultipleRandomServos on Mbed RaspberryPi Pico
367-
Mbed RP2040_ISR_Servo v1.1.1
367+
Mbed RP2040_ISR_Servo v1.1.2
368368
Setup OK Servo index = 0
369369
Setup OK Servo index = 1
370370
Setup OK Servo index = 2
@@ -408,7 +408,7 @@ Servos idx = 5, act. pos. (deg) = 800, pulseWidth (us) = 800
408408

409409
```
410410
Starting RP2040_MultipleRandomServos on RaspberryPi Pico
411-
RP2040_ISR_Servo v1.1.1
411+
RP2040_ISR_Servo v1.1.2
412412
Setup OK Servo index = 0
413413
Setup OK Servo index = 1
414414
Setup OK Servo index = 2
@@ -453,7 +453,7 @@ Servos idx = 5, act. pos. (deg) = 800, pulseWidth (us) = 800
453453
```
454454
455455
Starting RP2040_MultipleServos on RASPBERRY_PI_PICO
456-
RP2040_ISR_Servo v1.1.1
456+
RP2040_ISR_Servo v1.1.2
457457
Setup OK Servo index = 0
458458
Setup OK Servo index = 1
459459
Setup OK Servo index = 2
@@ -510,6 +510,8 @@ Submit issues to: [RP2040_ISR_Servo issues](https://github.com/khoih-prog/RP2040
510510
5. Convert to `h-only` style
511511
6. Add example [multiFileProject](examples/multiFileProject) to demo for multiple-file project
512512
7. Optimize code by using passing by `reference` instead of by `value
513+
8. Permit using servos with different pulse ranges simultaneously
514+
513515

514516
---
515517
---
@@ -519,10 +521,12 @@ Submit issues to: [RP2040_ISR_Servo issues](https://github.com/khoih-prog/RP2040
519521
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)
520522

521523
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
524+
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
522525

523526
<table>
524527
<tr>
525528
<td align="center"><a href="https://github.com/RadekVoltr"><img src="https://github.com/RadekVoltr.png" width="100px;" alt="RadekVoltr"/><br /><sub><b>Radek Voltr</b></sub></a><br /></td>
529+
<td align="center"><a href="https://github.com/Samt43"><img src="https://github.com/Samt43.png" width="100px;" alt="Samt43"/><br /><sub><b>Samt43</b></sub></a><br /></td>
526530
</tr>
527531
</table>
528532

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Releases v1.1.2](#releases-v112)
1516
* [Releases v1.1.1](#releases-v111)
1617
* [Releases v1.1.0](#releases-v111)
1718
* [Releases v1.0.1](#releases-v101)
@@ -22,6 +23,11 @@
2223

2324
## Changelog
2425

26+
### Releases v1.1.2
27+
28+
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)
29+
30+
2531
### Releases v1.1.1
2632

2733
1. Delete redundant `.cpp` file causing compile error

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "RP2040_ISR_Servo",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"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",
5-
"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.",
5+
"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",
66
"authors":
77
{
88
"name": "Khoi Hoang",

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name=RP2040_ISR_Servo
2-
version=1.1.1
2+
version=1.1.2
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
license=MIT
66
sentence=This library enables you to use Interrupt from Hardware Timers on RP2040 board to control multiple servo motors.
7-
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.
7+
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.
88
category=Device Control
99
url=https://github.com/khoih-prog/RP2040_ISR_Servo
1010
architectures=mbed_rp2040, mbed_nano, rp2040

src/RP2040_ISR_Servo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_ISR_Servo
1010
Licensed under MIT license
1111
12-
Version: 1.1.1
12+
Version: 1.1.2
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.0 K Hoang 21/08/2021 Initial coding for RP2040 boards using ArduinoCore-mbed or arduino-pico core
1717
1.0.1 K Hoang 22/10/2021 Fix platform in library.json for PIO
1818
1.1.0 K Hoang 27/02/2022 Fix setPulseWidth() bug. Convert to h-only style
1919
1.1.1 K Hoang 08/03/2022 Delete redundant `.cpp` file causing compile error
20+
1.1.2 K Hoang 08/03/2022 Permit using servos with different pulse ranges simultaneously
2021
*****************************************************************************************************************************/
2122

2223
#pragma once

src/RP2040_ISR_Servo.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
- RP2040-based boards such as RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040 using arduino_pico core
66
77
Written by Khoi Hoang
8-
98
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_ISR_Servo
109
Licensed under MIT license
11-
12-
Version: 1.1.1
10+
11+
Version: 1.1.2
1312
1413
Version Modified By Date Comments
1514
------- ----------- ---------- -----------
1615
1.0.0 K Hoang 21/08/2021 Initial coding for RP2040 boards using ArduinoCore-mbed or arduino-pico core
1716
1.0.1 K Hoang 22/10/2021 Fix platform in library.json for PIO
1817
1.1.0 K Hoang 27/02/2022 Fix setPulseWidth() bug. Convert to h-only style
1918
1.1.1 K Hoang 08/03/2022 Delete redundant `.cpp` file causing compile error
19+
1.1.2 K Hoang 08/03/2022 Permit using servos with different pulse ranges simultaneously
2020
*****************************************************************************************************************************/
2121

2222
#pragma once
@@ -27,22 +27,22 @@
2727
#if ( defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || \
2828
defined(ARDUINO_GENERIC_RP2040) ) && !defined(ARDUINO_ARCH_MBED)
2929

30-
#define RP2040_ISR_SERVO_VERSION "RP2040_ISR_Servo v1.1.1"
30+
#define RP2040_ISR_SERVO_VERSION "RP2040_ISR_Servo v1.1.2"
3131

3232
#elif ( defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || \
3333
defined(ARDUINO_GENERIC_RP2040) ) && defined(ARDUINO_ARCH_MBED)
3434

35-
#define RP2040_ISR_SERVO_VERSION "Mbed RP2040_ISR_Servo v1.1.1"
35+
#define RP2040_ISR_SERVO_VERSION "Mbed RP2040_ISR_Servo v1.1.2"
3636

3737
#else
3838
#error This code is intended to run on the mbed / non-mbed RP2040 platform! Please check your Tools->Board setting.
3939
#endif
4040

4141
#define RP2040_ISR_SERVO_VERSION_MAJOR 1
4242
#define RP2040_ISR_SERVO_VERSION_MINOR 1
43-
#define RP2040_ISR_SERVO_VERSION_PATCH 1
43+
#define RP2040_ISR_SERVO_VERSION_PATCH 2
4444

45-
#define RP2040_ISR_SERVO_VERSION_INT 1001001
45+
#define RP2040_ISR_SERVO_VERSION_INT 1001002
4646

4747
#include <stddef.h>
4848

src/RP2040_ISR_Servo_Debug.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_ISR_Servo
1010
Licensed under MIT license
1111
12-
Version: 1.1.1
12+
Version: 1.1.2
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.0 K Hoang 21/08/2021 Initial coding for RP2040 boards using ArduinoCore-mbed or arduino-pico core
1717
1.0.1 K Hoang 22/10/2021 Fix platform in library.json for PIO
1818
1.1.0 K Hoang 27/02/2022 Fix setPulseWidth() bug. Convert to h-only style
1919
1.1.1 K Hoang 08/03/2022 Delete redundant `.cpp` file causing compile error
20+
1.1.2 K Hoang 08/03/2022 Permit using servos with different pulse ranges simultaneously
2021
*****************************************************************************************************************************/
2122

2223
#pragma once

src/RP2040_ISR_Servo_Impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
- RP2040-based boards such as RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040 using arduino_pico core
66
77
Written by Khoi Hoang
8-
98
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_ISR_Servo
109
Licensed under MIT license
11-
12-
Version: 1.1.1
10+
11+
Version: 1.1.2
1312
1413
Version Modified By Date Comments
1514
------- ----------- ---------- -----------
1615
1.0.0 K Hoang 21/08/2021 Initial coding for RP2040 boards using ArduinoCore-mbed or arduino-pico core
1716
1.0.1 K Hoang 22/10/2021 Fix platform in library.json for PIO
1817
1.1.0 K Hoang 27/02/2022 Fix setPulseWidth() bug. Convert to h-only style
1918
1.1.1 K Hoang 08/03/2022 Delete redundant `.cpp` file causing compile error
19+
1.1.2 K Hoang 08/03/2022 Permit using servos with different pulse ranges simultaneously
2020
*****************************************************************************************************************************/
2121

2222
#pragma once

0 commit comments

Comments
 (0)