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

Setting a timer number when the default contructor is used. #13

@aramperez

Description

@aramperez

Is your feature request related to a problem? Please describe.

I'm using v1.2.0. I'd like to use an ESP32TimerInterrupt (ESP32Timer) object inside a class without having to use a pointer.

I don't understand why there is a default constructor "ESP32TimerInterrupt()" that sets the timer number (_timerNo) to MAX_ESP32_NUM_TIMERS but there is no setTimer() method. There is a "getTimer()" method that returns the private _timerNo variable.

Describe the solution you'd like

Add a setTimer(uint8_t timerNo) method.

Describe alternatives you've considered

My current solution is to have a pointer variable to an ESP32TimerInterrupt and allocate it either in my object constructor or other method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SupportLibrary supportwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions