[chronojump] Wifi. Control channel switches pins in pullup mode
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Wifi. Control channel switches pins in pullup mode
- Date: Tue, 24 Aug 2021 13:26:13 +0000 (UTC)
commit 319f1da7a208004dbda3857b7e432d22ed2a128c
Author: Xavier Padullés <x padulles gmail com>
Date: Tue Aug 24 15:22:17 2021 +0200
Wifi. Control channel switches pins in pullup mode
arduino/lightChro/control/control.ino | 6 +++---
arduino/lightChro/terminal/terminal.ino | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/arduino/lightChro/control/control.ino b/arduino/lightChro/control/control.ino
index 24da85be4..f19d0a697 100644
--- a/arduino/lightChro/control/control.ino
+++ b/arduino/lightChro/control/control.ino
@@ -98,9 +98,9 @@ void setup(void)
//************************************************************************************
// A0, A1, A2 connected to the 3xswith
- pinMode(A0, INPUT);
- pinMode(A1, INPUT);
- pinMode(A2, INPUT);
+ pinMode(A0, INPUT_PULLUP);
+ pinMode(A1, INPUT_PULLUP);
+ pinMode(A2, INPUT_PULLUP);
// En estas entradas se pondra un microswich , de 3 botones
// Se leeran en binario y se sumarán al canal por defecto 101
diff --git a/arduino/lightChro/terminal/terminal.ino b/arduino/lightChro/terminal/terminal.ino
index b6f036550..706cbf278 100644
--- a/arduino/lightChro/terminal/terminal.ino
+++ b/arduino/lightChro/terminal/terminal.ino
@@ -153,9 +153,9 @@ void setup(void)
//************************************************************************************
// A0, A1, A2 connected to the 3xswith
- pinMode(A0, INPUT);
- pinMode(A1, INPUT);
- pinMode(A2, INPUT);
+ pinMode(A0, INPUT_PULLUP);
+ pinMode(A1, INPUT_PULLUP);
+ pinMode(A2, INPUT_PULLUP);
// En estas entradas se pondra un microswich , de 3 botones
// Se leeran en binario y se sumarán al canal por defecto 101
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]