Skip to content

Commit 048e944

Browse files
committed
FC 2.0: No external pull up resistor needed for switch on poti pin
The old Arduino nano as used in FC 1.x doesn't have pull up resistors on A6/A7, on the FC 2.0 the input is A4 (and it seems to work just fine).
1 parent 03c24ff commit 048e944

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Arduino_Pedelec_Controller/config.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ const switch_name MENU_BUTTON_DOWN = SWITCH_DISPLAY1;
8383
const sw_action SW_THROTTLE_SHORT_PRESS = ACTION_SET_SOFT_POTI;
8484
const sw_action SW_THROTTLE_LONG_PRESS = ACTION_SHUTDOWN_SYSTEM;
8585

86-
// #define SUPPORT_SWITCH_ON_POTI_PIN //uncomment if you have an additional switch on the poti pin. use external 10k pullup resistor or it will not work!
86+
// #define SUPPORT_SWITCH_ON_POTI_PIN //uncomment if you have an additional switch on the poti pin.
87+
//FC 1.x: Use external 10k pullup resistor or it will not work!
88+
8789
const sw_action SW_POTI_SHORT_PRESS = ACTION_NONE;
8890
const sw_action SW_POTI_LONG_PRESS = ACTION_NONE;
8991

0 commit comments

Comments
 (0)