|
META TOPICPARENT |
name="Exercises" |
LEDs and NeoPixel
Introduction |
| In exercise 6 the LEDs will turn on clockwise (cw). Modify the program such that the LEDs turn on counter clock wise (ccw).
The exercise sheet in odt format: |
|
> > | Exercise 8: The color wheel |
| |
|
< < | https://afnog.iotworkshop.africa/pub/IoT_Course_English/LEDsAndNopNeoPixel/exercise_2_modified.odt |
> > |
Display all colors of the rainbow on all the LEDs of the LED ring. Traverse the color wheel in clockwise direction. Do not exceed a max intensity on any color component of 0x1f.
Hint: At an angle of 0°..60° the red component is at max level (0x1f), the blue component is zero and only the green component increases with increasing angle. For angles between 60° and 120° the green component is always max, the blue component is zero while the red component decreases from max to zero etc.
The exercise sheet in odt format:
https://afnog.iotworkshop.africa/pub/IoT_Course_English/LEDsAndNopNeoPixel/exercise_2.odt |
|
-- Uli Raich - 2020-05-05
Comments |
|
META FILEATTACHMENT |
attachment="esp32.png" attr="" comment="" date="1588704164" name="esp32.png" path="esp32.png" size="231244" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="ledRingBack.png" attr="" comment="" date="1590133836" name="ledRingBack.png" path="ledRingBack.png" size="356910" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="wrover.png" attr="" comment="" date="1596961702" name="wrover.png" path="wrover.png" size="256781" user="UliRaich" version="1" |
|
|
< < |
META FILEATTACHMENT |
attachment="exercise_2.odt" attr="" comment="" date="1596962540" name="exercise_2.odt" path="exercise_2.odt" size="939306" user="UliRaich" version="1" |
|
> > |
META FILEATTACHMENT |
attachment="exercise_2.odt" attr="" comment="" date="1623436269" name="exercise_2.odt" path="exercise_2.odt" size="1193071" user="UliRaich" version="2" |
|
|
META FILEATTACHMENT |
attachment="exercise_2_modified.odt" attr="" comment="" date="1596962877" name="exercise_2_modified.odt" path="exercise_2_modified.odt" size="1088313" user="UliRaich" version="1" |
|
|
> > |
META FILEATTACHMENT |
attachment="color-wheel.jpg" attr="" comment="" date="1623435889" name="color-wheel.jpg" path="color-wheel.jpg" size="253069" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="color_wheel.png" attr="" comment="" date="1623436135" name="color_wheel.png" path="color_wheel.png" size="269576" user="UliRaich" version="1" |
|