Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * frequency-test.c:
- * Simple test program to mearure GPIO update frequency
- */
- #include <wiringPi.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdint.h>
- int main (void)
- {
- printf ("Raspberry Pi Frequency test program\n") ;
- if (wiringPiSetup () == -1)
- exit (1) ;
- pinMode (1, OUTPUT) ;
- for (;;)
- {
- digitalWrite(1,1);
- digitalWrite(1,0);
- }
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement