add smooth blinky example

This commit is contained in:
2025-01-29 18:07:50 +05:30
parent 10c7e976d9
commit 3a20606645
2 changed files with 36 additions and 0 deletions

View File

@@ -63,3 +63,7 @@ If the button is pressed, `buttonState` will be `0` and new state will be `1`. H
Small delay is added to mitigate switch bouncing, as explained in [Circuit Basics blog on switch de-bouncing](https://www.circuitbasics.com/how-to-use-switch-debouncing-on-the-arduino/).
- insert gif of fan toggling.
## EfficientToggle
This example reads the changes in digital states using the interrupt model. Above examples use the polling method which constantly checks the state of the pin. Interrupt only mode only triggers a particular code to run only if a particular state is observed.