[chronojump] Revert "Photocell emitter. Fixed printf issues"
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Revert "Photocell emitter. Fixed printf issues"
- Date: Tue, 3 Aug 2021 11:00:30 +0000 (UTC)
commit b3431727ff0d69e17149261a3218f9e86d3a33a2
Author: Xavier Padullés <x padulles gmail com>
Date: Tue Aug 3 13:00:01 2021 +0200
Revert "Photocell emitter. Fixed printf issues"
This reverts commit 79132f8579a5729844127476620612a688bce1e4.
arduino/PhotocellWifi/emitter/emitter.ino | 11 ++++-------
arduino/lightChro/terminal/terminal.ino | 2 ++
2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/arduino/PhotocellWifi/emitter/emitter.ino b/arduino/PhotocellWifi/emitter/emitter.ino
index cd81bd806..5f06a690f 100644
--- a/arduino/PhotocellWifi/emitter/emitter.ino
+++ b/arduino/PhotocellWifi/emitter/emitter.ino
@@ -19,9 +19,9 @@
// Set up nRF24L01 radio on SPI bus plus pins (CE & CS)
-RF24 radio(A3, A4); //Version 3.2 of photocells
-//RF24 radio(10, 9); //Version 4.0+ of photocells
+RF24 radio(A3, A4); //9,10 originalmente , ahora A3,A4
+const int intPin = 0; //Para definir pin interrupción 0 = interrupción por pin D2
const int debounceTime = 1;
bool pinState = LOW; //estado pin 2 Alto/Bajo
bool lastPinState = LOW;
@@ -118,10 +118,8 @@ void setup(void)
// printf(" Versión Emisor 1.02 \n\r");
Serial.println("Emitter version 1.03");
//----------------------------------------------------
-
- printf("----");
- delay(1000);
- radio.printDetails(); //imprime configuración del emisor
+
+// radio.printDetails(); //imprime configuración del emisor
//------------------------------------------------------
@@ -194,7 +192,6 @@ void controlint()
}
void debounce(){
- Serial.println("interrupt");
MsTimer2::stop();
debounceFlag = HIGH;
}
diff --git a/arduino/lightChro/terminal/terminal.ino b/arduino/lightChro/terminal/terminal.ino
index c5128fc55..30124bb61 100644
--- a/arduino/lightChro/terminal/terminal.ino
+++ b/arduino/lightChro/terminal/terminal.ino
@@ -110,6 +110,8 @@ void setup(void)
//Remember to change comment/uncomment depending on the hardware version
// pinMode(7, INPUT_PULLUP); //Most significant bit
+ //¡¡¡¡Atention!!!!, the first version of the hardware the pin7 is associated to the buzzer.
+ //Remember to change comment/uncomment depending on the hardware version
for (int pin = 6; pin >= 3; pin--)
{
sample.termNum = sample.termNum * 2; //Each bit will be multiplied by 2 as much times as his significance
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]