Skip to content

Instantly share code, notes, and snippets.

#include <EEPROM.h>
#define CantidadLed 3
int Led[CantidadLed] = {3, 5, 4};
int Espera[CantidadLed] = {0, 0, 0};
String ColorSemaforo[CantidadLed] = {"Rojo", "Verde", "Amarillo"};
int Luz = 8;
#define Rojo 0
#define Verde 1
#define Amarillo 2
/*Semaforo : ROJO = 30,AMARILLO =25 ,VERDE=20;
1- Al recibir la instruccion de rojo sumar 30s ,2 amarillo 3 verde , 4 Encendido 5 Apagado, 6 Pausa 7Continuar;
*/
#define led 3
int Semaforo[led] = {5, 4, 3};
int Espera[3] = {3000, 2500, 2000};
char pause;
int i = 0;
void setup () {
Serial.begin(9600);