Skip to content

Commit

Permalink
EBBHardware.cpp: use define for Servo Pin LED Controller channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Weber committed Feb 12, 2024
1 parent b2cadb9 commit da383e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firmware/EggBot77/EBBHardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void EBBHardware::init()
ledcSetup(LED_BUILTIN_LEDC_CH, 1200, 10);

// attach Servo PWM pin to channel 2
ledcAttachPin(SERVO_PIN, 2);
ledcAttachPin(SERVO_PIN, SERVO_PIN_LEDC_CH);
ledcSetup(SERVO_PIN_LEDC_CH, 50, 10);
}

Expand Down
2 changes: 1 addition & 1 deletion firmware/EggBot77/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define Y_ENABLE_PIN 1

// Servo
#define SERVO_PIN 6 // "SpnEn"
#define SERVO_PIN 6

// EggBot77 doesn't have an engraver or buttons
#define ENGRAVER_PIN 7 // "SpnDir"
Expand Down

0 comments on commit da383e5

Please sign in to comment.