Guest User

Untitled

a guest
Oct 5th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. #include <wiringPi.h>
  2.  int main() {
  3.         wiringPiSetup();
  4.         wiringPiSetupGpio();
  5.         pinMode(18,INPUT);
  6.         pinMode(23,INPUT);
  7.         for(;;)
  8.         {
  9.                 if (digitalRead(18))
  10.                     printf("PRZOD");
  11.                 else
  12.                     printf("");
  13.  
  14.                 printf("");
  15.  
  16.                 if (digitalRead(23))
  17.                     printf("TYL");
  18.                 else
  19.                     printf("");
  20.  
  21.                 printf("\n");
  22.                 delay(100);
  23.         }
  24.  }
Advertisement
Add Comment
Please, Sign In to add comment