Skip to content

Commit b46fae4

Browse files
committed
Fix pin assignement in example
1 parent 723b023 commit b46fae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/MySensors/examples/DimmableLightWithRotaryEncoderButton/DimmableLightWithRotaryEncoderButton.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
#include <Bounce2.h>
4848

4949
#define LED_PIN 3 // Arduino pin attached to MOSFET Gate pin
50-
#define KNOB_ENC_PIN_1 A0 // Rotary encoder input pin 1
51-
#define KNOB_ENC_PIN_2 A1 // Rotary encoder input pin 2
50+
#define KNOB_ENC_PIN_1 4 // Rotary encoder input pin 1
51+
#define KNOB_ENC_PIN_2 5 // Rotary encoder input pin 2
5252
#define KNOB_BUTTON_PIN 6 // Rotary encoder button pin
5353
#define FADE_DELAY 10 // Delay in ms for each percentage fade up/down (10ms = 1s full-range dim)
5454
#define SN "DimmableLED /w button"

0 commit comments

Comments
 (0)