라즈베리파이 서보(SERVO) 모터 코드 #include #include #include const int pinServo = 17; int main(void) { wiringPiSetupGpio(); softPwmCreate(pinServo, 0, 200); while(1) { softPwmWrite(pinServo, 5); delay(1000); softPwmWrite(pinServo, 15); delay(1000); softPwmWrite(pinServo, 25); delay(1000); softPwmWrite(pinServo, 15); delay(1000); } return 0; }