/*****************************************************************
* ***************************************************************
* **** Evaluacion Final *****
* **** *****
* **** Autor: LUCAS RUIZ CUBILLAS *****
* **** Alumno: Universidad Peruana de Ciencias Aplicadas *****
* **** Curso: Desarrollo de Soluciones IoT *****
* **************************************************************/
#include "lcd-controller.cpp"
#include "led-controller.cpp"
#include "chip-controller.cpp"
#define redPin 13
#define greenPin 12
#define bluePin 11
#define analogPin A1
#define digitalPin 4
LiquidCrystal_I2C lcd(0x27, 20, 4);
LcdController display(lcd);
LedController ledC(redPin, greenPin, bluePin);
ChipController chipC(analogPin, digitalPin);
void setup() {
Serial.begin(115200);
display.start();
}
void loop() {
// List of possible functions
display.customPrint("Hi, this is a test");
ledC.turnOn(redPin);
delay(1000);
ledC.turnOff(redPin);
display.customPrint(0, 1, chipC.getChipValue());
delay(1000);
// Terminal
Serial.print("Chip Value: ");
Serial.println(chipC.getChipValue());
}