Skip to content

Instantly share code, notes, and snippets.

@yurapyon
Created January 5, 2017 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurapyon/4b3f1765385c2eab6e5f6cfe7795dd03 to your computer and use it in GitHub Desktop.
Save yurapyon/4b3f1765385c2eab6e5f6cfe7795dd03 to your computer and use it in GitHub Desktop.
digital write test
// these are equivalent
digitalWriteFast(13, HIGH);
delay(1);
digitalWriteFast(13, LOW);
delay(100);
//
CORE_PIN13_PORTREG |= CORE_PIN13_BITMASK;
delay(1);
CORE_PIN13_PORTREG &= ~CORE_PIN13_BITMASK;
delay(100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment