Last active
April 24, 2023 20:01
-
-
Save bradford-hamilton/e42a3f35b4c9a103f7eb29895e5663e4 to your computer and use it in GitHub Desktop.
ATtiny85 - example of loop for toggling LED
This file contains 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
while (1) { | |
for (unsigned int i = 0; i < 50000; i++) { PORTB |= (1 << 0); } | |
for (unsigned int i = 0; i < 50000; i++) { PORTB = 0x0; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment