From 1fb85fcf2582320cc41621b90adbb0a1aef551e0 Mon Sep 17 00:00:00 2001 From: Abel Tim Date: Sun, 11 May 2025 22:01:13 +0200 Subject: added encoder again Multi-line description of commit, feel free to be detailed. Signed-off-by: Abel Tim --- code/debug/motors/PWM/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'code/debug/motors/PWM') diff --git a/code/debug/motors/PWM/src/main.cpp b/code/debug/motors/PWM/src/main.cpp index 53369e4..c7d8fe0 100644 --- a/code/debug/motors/PWM/src/main.cpp +++ b/code/debug/motors/PWM/src/main.cpp @@ -1,5 +1,7 @@ #include +IntervalTimer myTimer; + int pwmPin = 3; //pin for PWM output int pwmacc = 1000; //how accurate the PWM is, means you can enter value from 0 to the value of pwmacc int PWMval = 0; //value of the PWM, means you can enter value from 0 to the value of pwmacc -- cgit v1.2.3