aboutsummaryrefslogtreecommitdiff
path: root/elegoo
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-09-12 02:07:41 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-09-12 02:07:41 +0200
commit6e1b8105f5da1411470dbaac3f18bf2d244106c6 (patch)
treec189c7850dfe626819d67ec24765212f86e8e4d1 /elegoo
parent91299174c2003a2f284bc84767dfe738774b055a (diff)
cleanup wiring
Diffstat (limited to 'elegoo')
-rw-r--r--elegoo/config.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/elegoo/config.h b/elegoo/config.h
index 6753bd0..31aa155 100644
--- a/elegoo/config.h
+++ b/elegoo/config.h
@@ -8,8 +8,8 @@
#define velo 130
// Pinout motor
-#define ENA 5 // 10 pwm enable right PD5 Out PWM
-#define ENB 6 // 5 pwm enable left PD6 Out PWM
+#define ENA 5 // 10 pwm enable right PD5 Out PWM OC0B
+#define ENB 6 // 5 pwm enable left PD6 Out PWM OC0A
#define IN1 7 // 9 direction backward right PD7 Out
#define IN2 8 // 8 direction forward right PB0 Out
@@ -18,11 +18,11 @@
// Pinout sensors
#define SR 2 // right PD2 In
-#define SC 4 // center PD4 In
-#define SL 11 // left PB3 In
+#define SC 3 // center PD3 In
+#define SL 4 // left PD4 In
// Servo
-#define SRV 3 // PD3 Out PWM
+#define SRV 11 // PB3 Out PWM OC2A
// Pinout IR
#define IR 12 // PB4 In