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

Commit

Permalink
v1.3.1 add support to new Adafruit boards
Browse files Browse the repository at this point in the history
### Releases v1.3.1

1. Add support to new Adafruit boards such as QTPY_ESP32S2, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM
  • Loading branch information
khoih-prog committed Jun 16, 2022
1 parent cc1b6a5 commit 6d3356d
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Arduino IDE version: 1.8.19
ESP32 core v2.0.3
ESP32S3_DEV Module
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux xy-Inspiron-3593 5.13.0-44-generic #49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered a crash while trying to use the Timer Interrupt.
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ This library enables you to use `1 Hardware Timer` on an ESP32, ESP32_S2, ESP32_
This [**ESP32_ISR_Servo** library](https://github.com/khoih-prog/ESP32_ISR_Servo) currently supports these following boards:

1. ESP32 boards, such as `ESP32_DEV`, etc.
2. ESP32S2-based boards, such as `ESP32S2_DEV`, `ESP32_S2 Saola`, etc.
2. ESP32S2-based boards, such as `ESP32S2_DEV`, `ESP32_S2 Saola`, Adafruit QTPY_ESP32S2, etc.
3. ESP32C3-based boards, such as `ESP32C3_DEV`, etc. **New**
4. ESP32_S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) **New**
4. ESP32_S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM, etc.) **New**

---
---
Expand Down Expand Up @@ -400,7 +400,7 @@ https://github.com/khoih-prog/ESP32_ISR_Servo/blob/60aa83a0db13a348f29ae84f53616

```
Starting ESP32_MultipleRandomServos on ESP32_DEV
ESP32_ISR_Servo v1.3.0
ESP32_ISR_Servo v1.3.1
Setup OK Servo index = 0
Setup OK Servo index = 1
Setup OK Servo index = 2
Expand Down Expand Up @@ -462,7 +462,7 @@ Servos idx = 5, act. pos. (deg) = 180, pulseWidth (us) = 2450

```
Starting ESP32_ISR_MultiServos on ESP32_DEV
ESP32_ISR_Servo v1.3.0
ESP32_ISR_Servo v1.3.1
Setup Servo1 OK
Setup Servo2 OK
Servo1 pos = 0, Servo2 pos = 180
Expand Down Expand Up @@ -507,7 +507,7 @@ Servo1 pos = 150, Servo2 pos = 30

```
Starting MultipleRandomServos on ESP32S3_DEV
ESP32_ISR_Servo v1.3.0
ESP32_ISR_Servo v1.3.1
[ISR_SERVO] ESP32_S3_TimerInterrupt: _timerNo = 3 , _fre = 1000000
[ISR_SERVO] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
[ISR_SERVO] _timerIndex = 1 , _timerGroup = 1
Expand Down Expand Up @@ -601,7 +601,7 @@ Servos idx = 3, act. pos. (deg) = [ISR_SERVO] Idx = 3

```
Starting ESP32_ISR_MultiServos on ESP32S2_DEV
ESP32_ISR_Servo v1.3.0
ESP32_ISR_Servo v1.3.1
[ISR_SERVO] ESP32_S2_TimerInterrupt: _timerNo = 3 , _fre = 1000000
[ISR_SERVO] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
[ISR_SERVO] _timerIndex = 1 , _timerGroup = 1
Expand Down Expand Up @@ -694,10 +694,12 @@ Submit issues to: [ESP32_ISR_Servo issues](https://github.com/khoih-prog/ESP32_I
### Contributions and thanks

1. Thanks to [raphweb](https://github.com/raphweb) for the PR [Fixed count >= min comparison for servo enable.](https://github.com/khoih-prog/ESP32_ISR_Servo/pull/1) to fix bug and leading to the new releases v1.1.0
2. Thanks to [Brent Rubell](https://github.com/brentru) for the PR [Add newer Adafruit boards](https://github.com/khoih-prog/ESP32_ISR_Servo/pull/5) to add support to new Adafruit boards such as QTPY_ESP32S2, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM, leading to the new releases v1.3.1

<table>
<tr>
<td align="center"><a href="https://github.com/raphweb"><img src="https://github.com/raphweb.png" width="100px;" alt="raphweb"/><br /><sub><b>⭐️ raphweb</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/brentru"><img src="https://github.com/brentru.png" width="100px;" alt="brentru"/><br /><sub><b>⭐️ Brent Rubell</b></sub></a><br /></td>
</tr>
</table>

Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

## Changelog

### Releases v1.3.1

1. Add support to new Adafruit boards such as QTPY_ESP32S2, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM

### Releases v1.3.0

1. Fix breaking issue caused by **ESP32 core v2.0.1+** by increasing `TIMER_INTERVAL_MICRO` to `12uS` from `10uS`. Tested OK with ESP32 core v2.0.3 now
Expand Down
3 changes: 2 additions & 1 deletion src/ESP32FastTimerInterrupt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Therefore, their executions are not blocked by bad-behaving functions / tasks.
This important feature is absolutely necessary for mission-critical tasks.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -23,6 +23,7 @@
1.2.0 K Hoang 06/03/2022 Convert to `h-only` style. Optimize code by using passing by `reference`
1.2.1 K Hoang 07/03/2022 Fix bug
1.3.0 K Hoang 08/05/2022 Fix issue with ESP32 core v2.0.1+
1.3.1 K Hoang 16/06/2022 Add support to new Adafruit boards
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/ESP32_ISR_Servo.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Therefore, their executions are not blocked by bad-behaving functions / tasks.
This important feature is absolutely necessary for mission-critical tasks.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -22,6 +22,7 @@
1.2.0 K Hoang 06/03/2022 Convert to `h-only` style. Optimize code by using passing by `reference`
1.2.1 K Hoang 07/03/2022 Fix bug
1.3.0 K Hoang 08/05/2022 Fix issue with ESP32 core v2.0.1+
1.3.1 K Hoang 16/06/2022 Add support to new Adafruit boards
*****************************************************************************************************************************/

#pragma once
Expand Down
11 changes: 6 additions & 5 deletions src/ESP32_ISR_Servo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Therefore, their executions are not blocked by bad-behaving functions / tasks.
This important feature is absolutely necessary for mission-critical tasks.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -22,6 +22,7 @@
1.2.0 K Hoang 06/03/2022 Convert to `h-only` style. Optimize code by using passing by `reference`
1.2.1 K Hoang 07/03/2022 Fix bug
1.3.0 K Hoang 08/05/2022 Fix issue with ESP32 core v2.0.1+
1.3.1 K Hoang 16/06/2022 Add support to new Adafruit boards
*****************************************************************************************************************************/

#pragma once
Expand All @@ -37,7 +38,7 @@
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) || defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S3_NOPSRAM) || \
defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM))
#define USING_ESP32_S3_TIMERINTERRUPT true
#elif ( ARDUINO_ESP32C3_DEV)
#elif ( ARDUINO_ESP32C3_DEV )
#define USING_ESP32_C3_TIMERINTERRUPT true
#elif defined(ESP32)
#define USING_ESP32_TIMERINTERRUPT true
Expand All @@ -46,13 +47,13 @@
#endif

#if !defined(ESP32_ISR_SERVO_VERSION)
#define ESP32_ISR_SERVO_VERSION "ESP32_ISR_Servo v1.3.0"
#define ESP32_ISR_SERVO_VERSION "ESP32_ISR_Servo v1.3.1"

#define ESP32_ISR_SERVO_VERSION_MAJOR 1
#define ESP32_ISR_SERVO_VERSION_MINOR 3
#define ESP32_ISR_SERVO_VERSION_PATCH 0
#define ESP32_ISR_SERVO_VERSION_PATCH 1

#define ESP32_ISR_SERVO_VERSION_INT 1003000
#define ESP32_ISR_SERVO_VERSION_INT 1003001

#endif

Expand Down
3 changes: 2 additions & 1 deletion src/ESP32_ISR_Servo_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Therefore, their executions are not blocked by bad-behaving functions / tasks.
This important feature is absolutely necessary for mission-critical tasks.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -22,6 +22,7 @@
1.2.0 K Hoang 06/03/2022 Convert to `h-only` style. Optimize code by using passing by `reference`
1.2.1 K Hoang 07/03/2022 Fix bug
1.3.0 K Hoang 08/05/2022 Fix issue with ESP32 core v2.0.1+
1.3.1 K Hoang 16/06/2022 Add support to new Adafruit boards
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/ESP32_ISR_Servo_Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Therefore, their executions are not blocked by bad-behaving functions / tasks.
This important feature is absolutely necessary for mission-critical tasks.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -22,6 +22,7 @@
1.2.0 K Hoang 06/03/2022 Convert to `h-only` style. Optimize code by using passing by `reference`
1.2.1 K Hoang 07/03/2022 Fix bug
1.3.0 K Hoang 08/05/2022 Fix issue with ESP32 core v2.0.1+
1.3.1 K Hoang 16/06/2022 Add support to new Adafruit boards
*****************************************************************************************************************************/

#include "ESP32_ISR_Servo.h"
Expand Down

0 comments on commit 6d3356d

Please sign in to comment.