mit Buttons/PWM als einzelne cpp und init in main
Dependencies: mbed mbed-rtos X_NUCLEO_IHM02A1
Diff: PWM2.cpp
- Revision:
- 34:0dee9a606869
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PWM2.cpp Wed Apr 24 21:08:27 2019 +0000 @@ -0,0 +1,11 @@ +#include "SETUP.h" + + +extern PwmOut Servo; + +void ServoAusschuss(float periode, float duty) +{ + Servo.period(periode); + Servo = duty; +} +