728x90 PWM1 라즈베리파이 PWM제어 /* * test2.c: * Simple test program to test the wiringPi functions * PWM test */ #include #include #include #include int main (void) { int pin ; int l ; printf ("Raspberry Pi wiringPi PWM test program\n") ; if (wiringPiSetup () == -1) exit (1) ; for (pin = 0 ; pin < 8 ; ++pin) { pinMode (pin, OUTPUT) ; digitalWrite (pin, LOW) ; } pinMode (1, PWM_OUTPUT) ; for (;;) { for (l = 0 ; l < 1024 ; ++l) .. 2013. 6. 30. 이전 1 다음 728x90