From 59abac3480502b90c4cff17625ba29329dc461bf Mon Sep 17 00:00:00 2001 From: Abel Tim Date: Sun, 23 Mar 2025 13:33:31 +0100 Subject: softpwm --- code/debug/motors/PWM/src/main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 code/debug/motors/PWM/src/main.cpp (limited to 'code/debug/motors/PWM/src/main.cpp') 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 + +int pwmPin = 3; + +void setup() { + SoftPWMBegin(); +} + +void loop() { + SoftPWMSetFadeTime(pwmPin, 2500, 2500); + delay(1000); +} \ No newline at end of file -- cgit v1.2.3