Back to Parent

Outcome


Making an LED Blink:
Exercise 1

  Modify the program to Blink on and off every 3 seconds.  

1.thumb
Show Advanced Options
Show Advanced Options
Show Advanced Options

  blink on and off 5 times then stop for 3 sec  

Show Advanced Options
Show Advanced Options

  add a second LED to the circuit and alternate blinks  

Show Advanced Options
Show Advanced Options

Making a Connected LED:
Exercise 1

  Modify the cloud function to blink the LED 3 times after it is called  

Show Advanced Options
Show Advanced Options

  Instead of passing HIGH or LOW, pass the number of times you would like it to blink. Set the function to blink that number of times Finally once it has completed all of the blinking it should turn the LED off.

Show Advanced Options
Show Advanced Options

Go back to the original program. Now add a second LED to the circuit.
Change the program and cloud function to allow you to control both LEDs remotely    

Show Advanced Options
Show Advanced Options

Process & Reflection

I think one method I find it really useful is .toInt(). At first, I don't know how to transform a string to an int. It took me some time to figure it out. 

Besides, for the exercise 2-3, I want to reuse the function ledControl. But I don't know how to import the ledPin as a parameter:( I wish I can figure it out soon. 

Drop files here or click to select

You can upload files of up to 20MB using this form.