torstai 15. marraskuuta 2018

5.3.3.4

PART 1
STEP 1
           a. Wind_RT, Power Main RT, Coal_RT
           b.-
           c. Power access point
           d. yes, Coal Power Point
           e. Smart Power grid switch
           f. it uses most energy
           g. 100.2.0.1
           h. Power, power, Solar Cells


PART2 
         

if (solar > 0) {
console.log("Using Solar Power...");
analogWrite(A3, 1);
} else if (wind > 0) {
console.log("Using Wind Power...");
analogWrite(A3, 2);
} else if (coal > 0) {
console.log("Using Coal Power...");
analogWrite(A3, 0);
} else {
console.log("Blackout!");
analogWrite(A3, 5);
}

Ei kommentteja:

Lähetä kommentti