Skip to content

Instantly share code, notes, and snippets.

@bradford-hamilton
Last active April 24, 2023 20:01
Show Gist options
  • Save bradford-hamilton/e42a3f35b4c9a103f7eb29895e5663e4 to your computer and use it in GitHub Desktop.
Save bradford-hamilton/e42a3f35b4c9a103f7eb29895e5663e4 to your computer and use it in GitHub Desktop.
ATtiny85 - example of loop for toggling LED
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