From fce5dcfa3761ab01a11b0c9deaa0f2e705320ec1 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Thu, 19 Mar 2015 03:40:51 +0000 Subject: [PATCH] Update readme --- README.md | 8 ++++++++ main.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d12de72..1f58d3c 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,11 @@ Setting Up ========= - Install WiringPi. Easy instructions here http://wiringpi.com/download-and-install/ - That's it at this stage. The makefile takes care of the rest. + +Running +====== +The pin numbers can be confusing. If you hold the Pi such that the GPIO header is on the *RIGHT* hand side of the board, the top left pin is refered to as pin 1, the pin directly to the right of it is pin 2. The pins continue to be named in this fashion. + +Pin 7 needs to be shorted to pin 9 for the magic to happen. + +Run ./hdmi-switcher as root, or using sudo. diff --git a/main.c b/main.c index d33d815..0e1bb50 100644 --- a/main.c +++ b/main.c @@ -13,7 +13,7 @@ int main (void) while(1) { if (digitalRead(7) == LOW) //Low is pressed - printf("Nice meme.\n"); + printf("Yay!\n"); while(digitalRead(7) == LOW) //This just causes the loop to wait til the button is released delay(10); -- 2.11.0