Skip to content

Conversation

@finger563
Copy link
Contributor

Description

  • Make bool for isr service installed static within class, not just constructor
  • Add static void uninstall_isr() method so that users can uninstall the ISR if they want to
  • Update example to use logger for better output
  • Update example to show use of uninstall_isr() method
  • Move LED implementation to cpp file

Motivation and Context

Improves how LEDs can be managed and ensures that if one LED is destructed, any other LEDs can continue to function (since the fade function is still installed). The user can uninstall the ISR if necessary.

How has this been tested?

Building and running led/example on M5Stack TimerCam

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

CleanShot 2024-12-19 at 10 16 39

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Hardware (schematic, board, system design) change
  • Software change

Checklist:

  • My change requires a change to the documentation.
  • I have added / updated the documentation related to this change via either README or WIKI

Software

  • I have added tests to cover my changes.
  • I have updated the .github/workflows/build.yml file to add my new test to the automated cloud build github action.
  • All new and existing tests passed.
  • My code follows the code style of this project.

* Make bool for isr service installed static within class, not just constructor
* Add `static void uninstall_isr()` method so that users can uninstall the ISR if they want to
* Update example to use logger for better output
* Update example to show use of `uninstall_isr()` method
* Move LED implementation to cpp file
@finger563 finger563 self-assigned this Dec 19, 2024
@finger563 finger563 added enhancement New feature or request led labels Dec 19, 2024
@github-actions
Copy link

✅Static analysis result - no issues found! ✅

@finger563 finger563 merged commit 4553e90 into main Dec 19, 2024
69 checks passed
@finger563 finger563 deleted the feat/led-cpp branch December 19, 2024 16:37
SquaredPotato pushed a commit to smartknob-ha/espp that referenced this pull request Jan 27, 2025
…p#354)

* Make bool for isr service installed static within class, not just constructor
* Add `static void uninstall_isr()` method so that users can uninstall the ISR if they want to
* Update example to use logger for better output
* Update example to show use of `uninstall_isr()` method
* Move LED implementation to cpp file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request led

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants