Commit 38923557 authored by Martin Enriquez's avatar Martin Enriquez

Prueba de comunicacion con el nodo de temperatura

parent f778ef2a
......@@ -61,12 +61,18 @@ ISR(INT0_vect)
{
case ENVIAR_TEMP:
// Llega temperatura del nodo
transmitirByteUART(data[0]);
transmitirByteUART(data[1]);
//transmitirByteUART(data[0]);
//transmitirByteUART(data[1]);
ledBlink();
break;
}
switch (data[1])
{
case 200:
ledBlink();
break;
}
sei();
CE = 1; // CE alto
reset();
......
......@@ -66,6 +66,8 @@ int main(void) {
_delay_ms(2000);
Modo_TX();
transmit_payload(data);
_delay_ms(20);
reset();
}
}
......
......@@ -28,12 +28,13 @@
#include "configuracion.h"
#include "mcu.h"
#include "hardware.h"
#include "adc.h"
void inicializarTodo() {
inicializarGPIO();
inicializarSPI();
// inicializarInterrupcionesExternas();
inicializarInterrupcionesExternas();
inicializarNRF24L01();
inicializarADC();
inicializarTimer();
......
......@@ -20,7 +20,7 @@
* Proyecto Domotica is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* Gunsigned charNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Proyecto Domotica. If not, see <http://www.gnu.org/licenses/>.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment