From ef7f551ca456193d4dbace1e3fb8e8334f62daad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= Date: Thu, 6 Jul 2017 07:04:28 +0200 Subject: [PATCH] disable button 2 and 3 not yet used and leftover setup conflicts with mode pin for stepper driver. --- arduino/startracker.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arduino/startracker.ino b/arduino/startracker.ino index c7b8297..4b4954d 100644 --- a/arduino/startracker.ino +++ b/arduino/startracker.ino @@ -149,8 +149,8 @@ static unsigned int loop_count = 0; static const unsigned int btn1_pin = 8; Switch button1Switch = Switch(btn1_pin); -static const unsigned int btn2_pin = 5; -static const unsigned int btn3_pin = 6; +// static const unsigned int btn2_pin = 5; +// static const unsigned int btn3_pin = 6; static const unsigned int end_stop_pin = 10; static const unsigned long serial_speed = 115200UL; @@ -376,8 +376,8 @@ void setup() { // Button input with pullups enable // pinMode(btn1_pin, INPUT); - pinMode(btn2_pin, INPUT_PULLUP); - pinMode(btn3_pin, INPUT_PULLUP); + // pinMode(btn2_pin, INPUT_PULLUP); + // pinMode(btn3_pin, INPUT_PULLUP); pinMode(end_stop_pin, INPUT_PULLUP); // Initial setup for motor driver