Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <wiringPi.h>
- int main() {
- wiringPiSetup();
- wiringPiSetupGpio();
- pinMode(18,INPUT);
- pinMode(23,INPUT);
- for(;;)
- {
- if (digitalRead(18))
- printf("PRZOD");
- else
- printf("");
- printf("");
- if (digitalRead(23))
- printf("TYL");
- else
- printf("");
- printf("\n");
- delay(100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment