Skip to content

Instantly share code, notes, and snippets.

@carneeki
Created March 14, 2016 10:26
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 carneeki/bcd2dfbb969a6c59ab66 to your computer and use it in GitHub Desktop.
Save carneeki/bcd2dfbb969a6c59ab66 to your computer and use it in GitHub Desktop.
Autonomous Board Test for Team 4802 in FRC game 2016
/*
* Autonomous Board Test
*
* Test an individual switch for Autonomous on the RoboRIO for BGHS/4802 in the
* 2016 FRC game.
*/
void setup()
{
// send serial to the PC
Serial.begin(115200);
// initialise the pin mode
pinMode(2, INPUT_PULLUP);
}
void loop()
{
Serial.println(digitalRead(2));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment