Created
May 11, 2020 00:39
-
-
Save jeremyherbert/43e103bf147c3d5f2edbbf9120cd73ab to your computer and use it in GitHub Desktop.
set/clear pins
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
PORTB |= (1 << 2); // set pin 2 | |
PORTB &= ~(1 << 2); // clear pin 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment