codetimeweb.files.wordpress.com · web viewfading heart 1 create a forever loop and add an image of...

4
Fading Heart 1 Create a forever loop and add an image of a heart Use set brightness to 255. This is maximum brightness Add a pause Now set its brightness to about half of that value and add another pause

Upload: ngodung

Post on 11-Jul-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: codetimeweb.files.wordpress.com · Web viewFading Heart 1 Create a forever loop and add an image of a heart Use set brightness to 255. This is maximum brightness Add a pause Now set

Fading Heart 1

Create a forever loop and add an image of a heart

Use set brightness to 255. This is maximum brightness

Add a pause

Now set its brightness to about half of that value and add another pause

The LEDs should fade and then go bright again

Page 2: codetimeweb.files.wordpress.com · Web viewFading Heart 1 Create a forever loop and add an image of a heart Use set brightness to 255. This is maximum brightness Add a pause Now set

Challenge

1. Get the LEDs to ‘set brightness 0’ before looping around again2. Get the LEDs to fade down and then fade back up again3. Add other values inbetween 255 and 125, 125 and 0 to create a smoother fade

Answers

Page 3: codetimeweb.files.wordpress.com · Web viewFading Heart 1 Create a forever loop and add an image of a heart Use set brightness to 255. This is maximum brightness Add a pause Now set
Page 4: codetimeweb.files.wordpress.com · Web viewFading Heart 1 Create a forever loop and add an image of a heart Use set brightness to 255. This is maximum brightness Add a pause Now set