Skip to content

Instantly share code, notes, and snippets.

@Hardolaf
Created July 1, 2014 20:47
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/1d176398bff1923153d4 to your computer and use it in GitHub Desktop.
Save Hardolaf/1d176398bff1923153d4 to your computer and use it in GitHub Desktop.
void setup() {
pinMode(A0, INPUT);
pinMode(A2, OUTPUT);
}
void loop() {
if (DDRF & _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