라즈베리파이 DC 모터 제어코드 1 #include #include const int pinEnable = 12; const int pinPositive = 4; const int pinNegative = 25; int main(void) { wiringPiSetupGpio(); pinMode(pinEnable, OUTPUT); pinMode(pinPositive, OUTPUT); pinMode(pinNegative, OUTPUT); while(1) { digitalWrite(pinPositive, HIGH); digitalWrite(pinNegative, LOW); digitalWrite(pinEnable, HIGH); delay(2000); digitalWrite(pinEnable, LOW); del..