Update readme
authorCameron Ball <c.ball1729@gmail.com>
Thu, 19 Mar 2015 03:40:51 +0000 (03:40 +0000)
committerCameron Ball <c.ball1729@gmail.com>
Thu, 19 Mar 2015 03:40:51 +0000 (03:40 +0000)
README.md
main.c

index d12de72..1f58d3c 100644 (file)
--- 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 (file)
--- 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);