After write a lot of notes, I finally complete the review questions😶🌫️ But I am a little bit confused by the current doubled when two batteries parallel in a circuit.
If & While
the difference- if only run one time(if condition meet)
but while will continue just run the code in the while area, until the condition not match
for loop could set a value, and continue run the function over and over till the number exceed the limit
the structure ( set up a number, define a variant )+( set a condition to constrain the variant, keep loop till the condition not true )+( add a self increase operation「like X++ 」)
the capacity of them
Lab: Bluetooth LE and p5.ble – ITP Physical Computing
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
Button control digital input and affect the different statues of different lamp