diff options
| author | Abel Tim <abel.tim.t@gmail.com> | 2025-03-23 13:33:31 +0100 |
|---|---|---|
| committer | Abel Tim <abel.tim.t@gmail.com> | 2025-03-23 13:33:31 +0100 |
| commit | 59abac3480502b90c4cff17625ba29329dc461bf (patch) | |
| tree | 998b61e645ebfe9af53067ebcff50ce96cf7e259 /code/debug/motors/PWM/src | |
| parent | 764c8722596f5b3bd01bb26848f7289b0972d7b0 (diff) | |
| download | robotica-59abac3480502b90c4cff17625ba29329dc461bf.tar.gz robotica-59abac3480502b90c4cff17625ba29329dc461bf.zip | |
softpwm
Diffstat (limited to 'code/debug/motors/PWM/src')
| -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 |
