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

Error in the value defined by TIMER0_INTERVAL_MS #28

Closed
pedrojvs opened this issue Nov 16, 2022 · 1 comment
Closed

Error in the value defined by TIMER0_INTERVAL_MS #28

pedrojvs opened this issue Nov 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@pedrojvs
Copy link

Describe the bug

I have used the example Argument_None.ino to check the operation of the library with an ESP32_C3. With the 2.20 version of the library when I define a value of 1000 in TIMER0_INTERVAL_MS a real value of 2000 ms is obtained. With version 2.1.0 the operation is correct.

Steps to Reproduce

I have used the example Argument_None.ino to check the operation of the library with an ESP32_C3.

Expected behavior

It was expected to obtain a square wave with a half-period equal to 1000 ms and it has been obtained measured with an oscilloscope of 2000 ms.

Arduino IDE version: 2.0.1
esp32c3-api1-20210207
OS: Windows 11

khoih-prog added a commit that referenced this issue Nov 16, 2022
### Releases v2.3.0

1. Fix doubled time for ESP32_C3, ESP32_S2 and ESP32_S3. Check [Error in the value defined by TIMER0_INTERVAL_MS #28](#28)
2. Modify examples to avoid using `LED_BUILTIN` / `GPIO2` as it cam cause crash in some boards, such as `ESP32_C3`
3. Use `allman astyle` and add `utils`
khoih-prog added a commit that referenced this issue Nov 16, 2022
### Releases v2.3.0

1. Fix doubled time for ESP32_C3, ESP32_S2 and ESP32_S3. Check [Error in the value defined by TIMER0_INTERVAL_MS #28](#28)
2. Modify examples to avoid using `LED_BUILTIN` / `GPIO2` as it cam cause crash in some boards, such as `ESP32_C3`
3. Use `allman astyle` and add `utils`
@khoih-prog
Copy link
Owner

Hi @pedrojvs

The new ESP32TimerInterrupt releases v2.3.0 has just been published. Your contribution is noted in Contributions and Thanks

Best Regards,


Releases v2.3.0

  1. Fix doubled time for ESP32_C3, ESP32_S2 and ESP32_S3. Check Error in the value defined by TIMER0_INTERVAL_MS #28
  2. Modify examples to avoid using LED_BUILTIN / GPIO2 as it cam cause crash in some boards, such as ESP32_C3
  3. Use allman astyle and add utils

@khoih-prog khoih-prog added the bug Something isn't working label Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants