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

robjonescowley.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

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: robjonescowley.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

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: robjonescowley.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

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: robjonescowley.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
Page 4: robjonescowley.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