|
Edited by r00X at 2017-1-20 04:48
Update: The Servo rotates but after that I loos the connection - it seems that the OrangePi Zero crashes...
Here the Code:
- #include <stdio.h>
- #include <wiringPi.h>
- #include <softPwm.h>
- int main(void)
- {
- if (wiringPiSetup()) ;
- pinMode(7, OUTPUT);
- digitalWrite(7, LOW);
- softPwmCreate(7, 0, 50);
- softPwmWrite(7, 1);
- for (;;) delay (10000) ;
- return 0;
- }
Copy code
It would be nice if someone can help me
Thanks
r00X |
|