#include "led.h"

#define PinRed 10
#define PinGreen 9
#define PinBlue 8
#define PinBuzzer 12

bool PwsErrata = 0;
bool InserisciPws = 0;
bool PwsCorretta = 0;

void setup() {
  pinMode(PinRed, OUTPUT);
  pinMode(PinGreen, OUTPUT);
  pinMode(PinBlue, OUTPUT);
}

void loop() {

  if(InserisciPws) {
    LedRGB.InserisciPws (10, 9, 8);
  }


  if(PwsErrata) {
    LedRGB.PwsErrata (10, 9, 8);
    digitalWrite(12, HIGH);
    delay(500);
    digitalWrite(12, LOW);
    delay(500);
  }

  if(PwsCorretta) {
    LedRGB.PwsCorretta (10, 9, 8);
    digitalWrite(12, HIGH);
    delay(100);
    digitalWrite(12, LOW);
    PwsCorretta = 0;
  }



}