[chronojump] Photocell emitter. Fixed printf issues
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Photocell emitter. Fixed printf issues
- Date: Tue, 3 Aug 2021 10:50:09 +0000 (UTC)
commit 79132f8579a5729844127476620612a688bce1e4
Author: Xavier Padullés <x padulles gmail com>
Date: Tue Aug 3 12:49:07 2021 +0200
Photocell emitter. Fixed printf issues
arduino/PhotocellWifi/emitter/emitter.ino | 11 +++++++----
arduino/lightChro/terminal/terminal.ino | 2 --
2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/arduino/PhotocellWifi/emitter/emitter.ino b/arduino/PhotocellWifi/emitter/emitter.ino
index 5f06a690f..cd81bd806 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); //9,10 originalmente , ahora A3,A4
+RF24 radio(A3, A4); //Version 3.2 of photocells
+//RF24 radio(10, 9); //Version 4.0+ of photocells
-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,8 +118,10 @@ void setup(void)
// printf(" Versión Emisor 1.02 \n\r");
Serial.println("Emitter version 1.03");
//----------------------------------------------------
-
-// radio.printDetails(); //imprime configuración del emisor
+
+ printf("----");
+ delay(1000);
+ radio.printDetails(); //imprime configuración del emisor
//------------------------------------------------------
@@ -192,6 +194,7 @@ 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 30124bb61..c5128fc55 100644
--- a/arduino/lightChro/terminal/terminal.ino
+++ b/arduino/lightChro/terminal/terminal.ino
@@ -110,8 +110,6 @@ 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]