image.png

image.png

image.png

IMG_9454.jpeg

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.

Arduino Ide Code

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

image.png

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++ 」)

Normal variables

image.png

the capacity of them

image.png

Bluetooth Intro

Lab: Bluetooth LE and p5.ble – ITP Physical Computing

First try Blink lamp

void setup() {
  pinMode(13, OUTPUT);
}
 
void loop() {
  digitalWrite(13, HIGH);
   delay(1000);
  digitalWrite(13, LOW);
  delay(1000);
}

IMG_9475.mov

Button control digital input and affect the different statues of different lamp