Challenge: Changing Colors

Change the colors of the stripes based on the orientation of the device. There are three color channels (Red, Green, Blue) and three axes of movement (X, Y, Z). Assign a color to each axis. When the G force on an axis is closer to -1, set its color channel to 0 and when it is closer to 1 set its color channel to 1. Use the documentation!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.47.169