Bætti við interrupt (pin D2) til að skoða encoder lestur, umb fyrir Part 1 í verkefni

This commit is contained in:
2026-10-14 16:02:44 +00:00
parent 1250860efe
commit b90b84d94c
4 changed files with 31 additions and 8 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class State;
class MotorController
{
private:
static constexpr double DEFAULT_REFERENCE_RPM = 40.0;
static constexpr double DEFAULT_REFERENCE_RPM = -40.0;
static constexpr double PWM_PER_PERCENT = 255.0 / 100.0;
//static const uint8_t LED_PIN = 5; // PB5 = D13 = LED_BUILTIN
static constexpr uint8_t LED_PIN = Digital_out::STATUS_LED;