diff --git a/0x03-conductividad/0x03-conductividad.ino b/0x03-conductividad/0x03-conductividad.ino new file mode 100644 index 0000000..767122a --- /dev/null +++ b/0x03-conductividad/0x03-conductividad.ino @@ -0,0 +1,31 @@ + +// Dispositivo +int devID = 3; +char devIDstr[5]; +int inQuery; + + + +void setup() { + Serial.begin(9600); +} + + +void loop() { + + Serial.write("\n"); + delay(1000); + + if ( Serial.available() > 0) { + + + if ( inQuery == devID) { + + Serial.write(itoa(devID, devIDstr, 10)); + Serial.write(" "); + Serial.write("Tur"); + + } + } + +} diff --git a/0x03-conductividad/0x03-conductuvidad b/0x03-conductividad/0x03-conductuvidad deleted file mode 100644 index 3162326..0000000 --- a/0x03-conductividad/0x03-conductuvidad +++ /dev/null @@ -1,42 +0,0 @@ - -// Dispositivo -char devIDstr[5]; -int inQuery; - - - -void setup() { - Serial.begin(9600); -} - - -void loop() { - - Serial.write("\n"); - delay(1000); - - if ( Serial.available() > 0) { - inQuery = Serial.read(); - - if ( inQuery == devID) { - - Serial.write(itoa(devID, devIDstr, 10)); - Serial.write(" "); - Serial.write("Tur"); - Serial.write(" "); - - //char lecturaStr[6]; // Buffer big enough for 7-character float - //dtostrf(getData(), 2, 4, lecturaStr); // Leave room for too large numbers! - char lecturaStr[5]; // Buffer big enough for 7-character float - dtostrf(getData(), 3, 2, lecturaStr); // Leave room for too large numbers! - - Serial.write(lecturaStr); - Serial.write(" "); - Serial.write("TSS"); - Serial.write(" "); - Serial.write("99"); - - } - } - -} diff --git a/Debug/README.md b/Debug/README.md new file mode 100644 index 0000000..1319ca1 --- /dev/null +++ b/Debug/README.md @@ -0,0 +1,2 @@ +### Protoboard + diff --git a/Debug/proto.png b/Debug/proto.png new file mode 100644 index 0000000..25bf8ac Binary files /dev/null and b/Debug/proto.png differ diff --git a/README.md b/README.md index ff25c8a..45e13c0 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Una vez que finaliza la grabaciĆ³n extraer la tarjeta MicroSD y colocarla en la Abra una terminal e instale 'git'. ``` -$ sudo apt update && apt install git +$ sudo apt update && sudo apt install git ``` **Paso 2**