Commit 561d9946 authored by Martin Enriquez's avatar Martin Enriquez

Modificacion de los comandos para la comunicacion

parent 06023dfc
......@@ -38,7 +38,7 @@
#define LUCES_ON 0x1F
#define LUCES_OFF 0x11
#define LUCES_TOGGLE 0x1A
#define LUCES_TOGGLE 0xDD
#define LUCES_DUTY 0x1D
#define LUCES_AUMENTAR 0x1B
#define LUCES_DISMINUIR 0x1C
......
......@@ -98,21 +98,21 @@ void transmitirUART(unsigned char * datos) {
unsigned char comandoValido(unsigned char comando) {
switch(comando) {
case RELE_ON:
case RELE_OFF:
case RELE_TOGGLE:
case LUCES_ON:
case LUCES_OFF:
case LUCES_TOGGLE:
case LUCES_DUTY:
case LUCES_AUMENTAR:
case LUCES_DISMINUIR:
case PING:
case ACK:
return 1;
break;
default:
return 0;
case RELE_ON:
case RELE_OFF:
case RELE_TOGGLE:
case LUCES_ON:
case LUCES_OFF:
case LUCES_TOGGLE:
case LUCES_DUTY:
case LUCES_AUMENTAR:
case LUCES_DISMINUIR:
case PING:
case ACK:
return 1;
break;
default:
return 0;
}
}
......
......@@ -38,7 +38,7 @@
#define LUCES_ON 0x1F
#define LUCES_OFF 0x11
#define LUCES_TOGGLE 0x1A
#define LUCES_TOGGLE 0xDD
#define LUCES_DUTY 0x1D
#define LUCES_AUMENTAR 0x1B
#define LUCES_DISMINUIR 0x1C
......
{
"RELE_ON": 15,
"RELE_OFF": 1,
"RELE_TOGGLE": 218,
"RELE_TOGGLE": 221,
"LUCES_ON": 31,
"LUCES_OFF": 17,
"LUCES_TOGGLE": 26,
......@@ -12,4 +12,4 @@
"FREC_ONOFF": 120,
"FREC_LUCES": 102,
"ACK": 65
}
\ No newline at end of file
}
......@@ -8,7 +8,7 @@
"RELE_TOGGLE": 218,
"LUCES_ON": 31,
"LUCES_OFF": 17,
"LUCES_TOGGLE": 26,
"LUCES_TOGGLE": 221,
"LUCES_DUTY": 29,
"LUCES_AUMENTAR": 27,
"LUCES_DISMINUIR": 28,
......
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