Full emojie

#include “LedControl.h”

LedControl matrice = LedControl(12, 11, 10, 1);

void setup() {
matrice.clearDisplay(0);
matrice.shutdown(0, false);
Serial.begin(9600);
}

void loop() {
int humidity = analogRead(0);
Serial.println(humidity);

if(humidity > 400){
// ================ BAD ================
matrice.clearDisplay(0);
matrice.setLed(0,1,1,true);
matrice.setLed(0,2,2,true);
matrice.setLed(0,3,2,true);
matrice.setLed(0,4,2,true);
matrice.setLed(0,5,2,true);

matrice.setLed(0,6,1,true);

 

matrice.setLed(0,1,5,true);
matrice.setLed(0,2,5,true);
matrice.setLed(0,2,6,true);

matrice.setLed(0,6,5,true);
matrice.setLed(0,5,5,true);
matrice.setLed(0,5,6,true);
} else {
// ================ SMILE ================
matrice.clearDisplay(0);
matrice.setLed(0,1,2,true);

matrice.setLed(0,2,1,true);
matrice.setLed(0,3,1,true);
matrice.setLed(0,4,1,true);
matrice.setLed(0,5,1,true);

matrice.setLed(0,6,2,true);

 

matrice.setLed(0,1,5,true);
matrice.setLed(0,2,5,true);
matrice.setLed(0,2,6,true);
matrice.setLed(0,1,6,true);

matrice.setLed(0,6,5,true);
matrice.setLed(0,6,6,true);
matrice.setLed(0,5,5,true);
matrice.setLed(0,5,6,true);
}
}