diff options
| author | Abel Tim <git@abeltim.com> | 2025-05-11 22:01:13 +0200 |
|---|---|---|
| committer | Abel Tim <git@abeltim.com> | 2025-05-11 22:01:13 +0200 |
| commit | 1fb85fcf2582320cc41621b90adbb0a1aef551e0 (patch) | |
| tree | de069e33a26c801f9488f79099e2dca02e357728 /code/debug/motors/PWM/src/main.cpp | |
| parent | 4680274ed48b38fdcc3ab292ad4856312977a9e4 (diff) | |
| download | robotica-1fb85fcf2582320cc41621b90adbb0a1aef551e0.tar.gz robotica-1fb85fcf2582320cc41621b90adbb0a1aef551e0.zip | |
added encoder again
Multi-line description of commit,
feel free to be detailed.
Signed-off-by: Abel Tim <git@abeltim.com>
Diffstat (limited to 'code/debug/motors/PWM/src/main.cpp')
| -rw-r--r-- | code/debug/motors/PWM/src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <Arduino.h> +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 |
