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

Commit 81e0b6a

Browse files
authored
v1.2.1 add support to new Adafruit boards
### Releases v1.2.1 1. Add support to new Adafruit boards such as QTPY_ESP32S2, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM
1 parent 35c87e9 commit 81e0b6a

10 files changed

+33
-21
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Arduino IDE version: 1.8.19
3434
ESP32 core v2.0.3
3535
ESP32S3_DEV Module
3636
OS: Ubuntu 20.04 LTS
37-
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
37+
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
3838
3939
Context:
4040
I encountered a crash while trying to use the Timer Interrupt.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ This library enables you to use `1 Hardware Timer` on an ESP32, ESP32_S2, ESP32_
113113
This [**ESP32_New_ISR_Servo** library](https://github.com/khoih-prog/ESP32_New_ISR_Servo) currently supports these following boards:
114114

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

120120
---
121121
---
@@ -420,7 +420,7 @@ https://github.com/khoih-prog/ESP32_New_ISR_Servo/blob/e05bb5d4fc2abf2bd5551388f
420420

421421
```
422422
Starting ESP32_New_MultipleRandomServos on ESP32S2_DEV
423-
ESP32_New_ISR_Servo v1.2.0
423+
ESP32_New_ISR_Servo v1.2.1
424424
[ISR_SERVO] ESP32_S2_TimerInterrupt: _timerNo = 3 , _fre = 1000000
425425
[ISR_SERVO] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
426426
[ISR_SERVO] _timerIndex = 1 , _timerGroup = 1
@@ -536,7 +536,7 @@ Servos sweeps from 0-180 degress
536536

537537
```
538538
Starting ESP32_New_ISR_MultiServos on ESP32S2_DEV
539-
ESP32_New_ISR_Servo v1.2.0
539+
ESP32_New_ISR_Servo v1.2.1
540540
[ISR_SERVO] ESP32_S2_TimerInterrupt: _timerNo = 3 , _fre = 1000000
541541
[ISR_SERVO] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
542542
[ISR_SERVO] _timerIndex = 1 , _timerGroup = 1
@@ -561,7 +561,7 @@ Servo1 pos = 180, Servo2 pos = 0
561561

562562
```
563563
Starting ESP32_New_MultipleRandomServos on ESP32S3_DEV
564-
ESP32_New_ISR_Servo v1.2.0
564+
ESP32_New_ISR_Servo v1.2.1
565565
[ISR_SERVO] ESP32_S3_TimerInterrupt: _timerNo = 3 , _fre = 1000000
566566
[ISR_SERVO] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
567567
[ISR_SERVO] _timerIndex = 1 , _timerGroup = 1
@@ -619,7 +619,7 @@ Servos idx = 0, act. pos. (deg) = [ISR_SERVO] Idx = 0
619619

620620
```
621621
Starting ESP32_New_ISR_MultiServos on ESP32S3_DEV
622-
ESP32_New_ISR_Servo v1.2.0
622+
ESP32_New_ISR_Servo v1.2.1
623623
[ISR_SERVO] ESP32_S3_TimerInterrupt: _timerNo = 3 , _fre = 1000000
624624
[ISR_SERVO] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
625625
[ISR_SERVO] _timerIndex = 1 , _timerGroup = 1

changelog.md

Lines changed: 5 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.2.1](#releases-v121)
1516
* [Releases v1.2.0](#releases-v120)
1617
* [Releases v1.1.0](#releases-v110)
1718
* [Releases v1.0.0](#releases-v100)
@@ -21,6 +22,10 @@
2122

2223
## Changelog
2324

25+
### Releases v1.2.1
26+
27+
1. Add support to new Adafruit boards such as QTPY_ESP32S2, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM
28+
2429
### Releases v1.2.0
2530

2631
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

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESP32_New_ISR_Servo",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"keywords": "timer, interrupt, isr, hardware, servo, isr-based-servo, servo-control, esp32, esp32-s2, esp32-s3, esp32-c3, mission-critical, precise, non-blocking",
55
"description": "This library enables you to use 1 Hardware Timer on an ESP32, ESP32_S2, ESP32_C3-based board to control up to 16 or more servo motors. Tested OK with ESP32 core v2.0.3",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP32_New_ISR_Servo
2-
version=1.2.0
2+
version=1.2.1
33
author=Khoi Hoang <[email protected]>
44
maintainer=Khoi Hoang <[email protected]>
55
license=MIT

src/ESP32_New_FastTimerInterrupt.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
Based on BlynkTimer.h
2828
Author: Volodymyr Shymanskyy
2929
30-
Version: 1.2.0
30+
Version: 1.2.1
3131
3232
Version Modified By Date Comments
3333
------- ----------- ---------- -----------
3434
1.0.0 K Hoang 15/08/2021 Initial coding for ESP32, ESP32_S2, ESP32_C3 boards with ESP32 core v2.0.0-rc1+
3535
1.1.0 K Hoang 12/02/2022 Add support to new ESP32-S3. Convert to h-only library. Optimize code
3636
1.2.0 K Hoang 08/05/2022 Fix issue with core v2.0.1+
37+
1.2.1 K Hoang 16/06/2022 Add support to new Adafruit boards
3738
*****************************************************************************************************************************/
3839

3940
#pragma once
@@ -43,10 +44,11 @@
4344

4445
#if ( ARDUINO_ESP32S2_DEV || ARDUINO_FEATHERS2 || ARDUINO_ESP32S2_THING_PLUS || ARDUINO_MICROS2 || \
4546
ARDUINO_METRO_ESP32S2 || ARDUINO_MAGTAG29_ESP32S2 || ARDUINO_FUNHOUSE_ESP32S2 || \
46-
ARDUINO_ADAFRUIT_FEATHER_ESP32S2_NOPSRAM )
47+
ARDUINO_ADAFRUIT_FEATHER_ESP32S2_NOPSRAM || ARDUINO_ADAFRUIT_QTPY_ESP32S2)
4748
#define USING_ESP32_S2_NEW_ISR_SERVO true
4849
#elif ( defined(ARDUINO_ESP32S3_DEV) || defined(ARDUINO_ESP32_S3_BOX) || defined(ARDUINO_TINYS3) || \
49-
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) )
50+
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) || defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S3_NOPSRAM) || \
51+
defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM))
5052
#define USING_ESP32_S3_NEW_ISR_SERVO true
5153
#elif ( ARDUINO_ESP32C3_DEV )
5254
#define USING_ESP32_C3_NEW_ISR_SERVO true

src/ESP32_New_ISR_Servo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
Based on BlynkTimer.h
2828
Author: Volodymyr Shymanskyy
2929
30-
Version: 1.2.0
30+
Version: 1.2.1
3131
3232
Version Modified By Date Comments
3333
------- ----------- ---------- -----------
3434
1.0.0 K Hoang 15/08/2021 Initial coding for ESP32, ESP32_S2, ESP32_C3 boards with ESP32 core v2.0.0-rc1+
3535
1.1.0 K Hoang 12/02/2022 Add support to new ESP32-S3. Convert to h-only library. Optimize code
3636
1.2.0 K Hoang 08/05/2022 Fix issue with core v2.0.1+
37+
1.2.1 K Hoang 16/06/2022 Add support to new Adafruit boards
3738
*****************************************************************************************************************************/
3839

3940
#pragma once

src/ESP32_New_ISR_Servo.hpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
Based on BlynkTimer.h
2828
Author: Volodymyr Shymanskyy
2929
30-
Version: 1.2.0
30+
Version: 1.2.1
3131
3232
Version Modified By Date Comments
3333
------- ----------- ---------- -----------
3434
1.0.0 K Hoang 15/08/2021 Initial coding for ESP32, ESP32_S2, ESP32_C3 boards with ESP32 core v2.0.0-rc1+
3535
1.1.0 K Hoang 12/02/2022 Add support to new ESP32-S3. Convert to h-only library. Optimize code
3636
1.2.0 K Hoang 08/05/2022 Fix issue with core v2.0.1+
37+
1.2.1 K Hoang 16/06/2022 Add support to new Adafruit boards
3738
*****************************************************************************************************************************/
3839

3940
#pragma once
@@ -43,11 +44,12 @@
4344

4445
#if ( ARDUINO_ESP32S2_DEV || ARDUINO_FEATHERS2 || ARDUINO_ESP32S2_THING_PLUS || ARDUINO_MICROS2 || \
4546
ARDUINO_METRO_ESP32S2 || ARDUINO_MAGTAG29_ESP32S2 || ARDUINO_FUNHOUSE_ESP32S2 || \
46-
ARDUINO_ADAFRUIT_FEATHER_ESP32S2_NOPSRAM )
47+
ARDUINO_ADAFRUIT_FEATHER_ESP32S2_NOPSRAM || ARDUINO_ADAFRUIT_QTPY_ESP32S2)
4748
#warning Using ESP32_S2-based board
4849
#define USING_ESP32_S2_ISR_SERVO true
4950
#elif ( defined(ARDUINO_ESP32S3_DEV) || defined(ARDUINO_ESP32_S3_BOX) || defined(ARDUINO_TINYS3) || \
50-
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) )
51+
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) || defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S3_NOPSRAM) || \
52+
defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM))
5153
#warning Using ESP32_S3-based board
5254
#define USING_ESP32_S3_ISR_SERVO true
5355
#elif ( ARDUINO_ESP32C3_DEV )
@@ -61,13 +63,13 @@
6163
#endif
6264

6365
#ifndef ESP32_NEW_ISR_SERVO_VERSION
64-
#define ESP32_NEW_ISR_SERVO_VERSION "ESP32_New_ISR_Servo v1.2.0"
66+
#define ESP32_NEW_ISR_SERVO_VERSION "ESP32_New_ISR_Servo v1.2.1"
6567

6668
#define ESP32_NEW_ISR_SERVO_VERSION_MAJOR 1
6769
#define ESP32_NEW_ISR_SERVO_VERSION_MINOR 2
68-
#define ESP32_NEW_ISR_SERVO_VERSION_PATCH 0
70+
#define ESP32_NEW_ISR_SERVO_VERSION_PATCH 1
6971

70-
#define ESP32_NEW_ISR_SERVO_VERSION_INT 1002000
72+
#define ESP32_NEW_ISR_SERVO_VERSION_INT 1002001
7173
#endif
7274

7375
#include <stddef.h>

src/ESP32_New_ISR_Servo_Debug.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
Based on BlynkTimer.h
2828
Author: Volodymyr Shymanskyy
2929
30-
Version: 1.2.0
30+
Version: 1.2.1
3131
3232
Version Modified By Date Comments
3333
------- ----------- ---------- -----------
3434
1.0.0 K Hoang 15/08/2021 Initial coding for ESP32, ESP32_S2, ESP32_C3 boards with ESP32 core v2.0.0-rc1+
3535
1.1.0 K Hoang 12/02/2022 Add support to new ESP32-S3. Convert to h-only library. Optimize code
3636
1.2.0 K Hoang 08/05/2022 Fix issue with core v2.0.1+
37+
1.2.1 K Hoang 16/06/2022 Add support to new Adafruit boards
3738
*****************************************************************************************************************************/
3839

3940
#pragma once

src/ESP32_New_ISR_Servo_Impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
Based on BlynkTimer.h
2828
Author: Volodymyr Shymanskyy
2929
30-
Version: 1.2.0
30+
Version: 1.2.1
3131
3232
Version Modified By Date Comments
3333
------- ----------- ---------- -----------
3434
1.0.0 K Hoang 15/08/2021 Initial coding for ESP32, ESP32_S2, ESP32_C3 boards with ESP32 core v2.0.0-rc1+
3535
1.1.0 K Hoang 12/02/2022 Add support to new ESP32-S3. Convert to h-only library. Optimize code
3636
1.2.0 K Hoang 08/05/2022 Fix issue with core v2.0.1+
37+
1.2.1 K Hoang 16/06/2022 Add support to new Adafruit boards
3738
*****************************************************************************************************************************/
3839

3940
#pragma once

0 commit comments

Comments
 (0)