Created
December 14, 2017 14:57
-
-
Save matteyeux/38c12197f47ac87cc0e8e4c9e2db34e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void cool_delay(int timeinms){ | |
| if (bitRead (TIFR2, 0) == 1) | |
| { | |
| TCNT2 = 9; | |
| bitSet (TIFR2, TOV2); | |
| if (++varCompteur == 12) | |
| { | |
| varCompteur = 0; | |
| ledon; | |
| } else | |
| { | |
| ledoff; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment