diff options
Diffstat (limited to 'code/debug/motors/PWM/src/main.cpp')
| -rw-r--r-- | code/debug/motors/PWM/src/main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/code/debug/motors/PWM/src/main.cpp b/code/debug/motors/PWM/src/main.cpp new file mode 100644 index 0000000..7564056 --- /dev/null +++ b/code/debug/motors/PWM/src/main.cpp @@ -0,0 +1,13 @@ +#include "SoftPWM.h" +#include <Arduino.h> + +int pwmPin = 3; + +void setup() { + SoftPWMBegin(); +} + +void loop() { + SoftPWMSetFadeTime(pwmPin, 2500, 2500); + delay(1000); +}
\ No newline at end of file |
