Skip to content

Instantly share code, notes, and snippets.

@Hardolaf
Created July 1, 2014 21:50
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 Hardolaf/9a2709d72eecec2fe74b to your computer and use it in GitHub Desktop.
Save Hardolaf/9a2709d72eecec2fe74b to your computer and use it in GitHub Desktop.
void setup() {
DDRF = DDRF | _BV(5);
}
void loop() {
if (!(PINF & _BV(7))) {
PORTF |= _BV(5);
} else {
PORTF &= ~_BV(5);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment