Hide minor edits - Show changes to markup
Only your Arduino Espora is needed for this example.
Only your Arduino Esplora is needed for this example.
(:source https://raw.github.com/arduino/Arduino/master/libraries/Esplora/examples/EsploraLedShow/EsploraLedShow.ino lang=arduino tabwidth=4:)
(:source https://raw.github.com/arduino/Arduino/master/libraries/Esplora/examples/Beginners/EsploraLedShow/EsploraLedShow.ino lang=arduino tabwidth=4:)
This example explain you how to read different the joystick and the output will be shown as output on the serial monitor and as generated color on the RGB led. The joystick is composed by two axis and each axis will control one of the colors of the RGB led. the brightness of the third color, the blue, will be controlled by the linear potentiometer.
This example shows you how to read the values from the joystick. The output will be displayed through the serial monitor and as a color on the RGB LED.
The joystick has two axes, X and Y. Each axis controls a color of the RGB LED: red with the X-axis, and green with the Y-axis. The brightness of the blue element will be controlled by the position of the linear potentiometer.
the RGB led is composed by three channels that represent the three primary colors: red, green and blue. Each of these colors is controllable in intensity with one of the functions provided by the Esplora library:
The RGB LED is comprised of three colors that represent the three primary colors: red, green, and blue. Each of these light's brightness is individually controllable with functions in the Esplora library:
Or if you want control all the colors with one instruction you can use the writeRGB() function. Moving the cursor of the joystick and changing the position of the linear potentiometer will generate different values depending on the position. These values are used to produce two different outputs, one will appear opening the serial monitor ant the other one will displayed physically on the RGB led.
If you want to control all the colors with one instruction you can use the writeRGB() function.
Moving the joystick and changing the position of the linear potentiometer will generate different values. These values are used to produce two different outputs: one will appear by opening the serial monitor, and the other is displayed physically through the RGB led.
(:source https://raw.github.com/arduino/Arduino/master/libraries/Esplora/examples/EsploraLedShow/EsploraLedShow.inolang=arduino tabwidth=4:)
(:source https://raw.github.com/arduino/Arduino/master/libraries/Esplora/examples/EsploraLedShow/EsploraLedShow.ino lang=arduino tabwidth=4:)
(:source lang=arduino tabwidth=4:)
(:sourceend:)
(:source https://raw.github.com/arduino/Arduino/master/libraries/Esplora/examples/EsploraLedShow/EsploraLedShow.inolang=arduino tabwidth=4:)
(:sourceend:)
Examples > Esplora
This example explain you how to read different the joystick and the output will be shown as output on the serial monitor and as generated color on the RGB led. The joystick is composed by two axis and each axis will control one of the colors of the RGB led. the brightness of the third color, the blue, will be controlled by the linear potentiometer.
(:div class=BOM :)
(:divend:)
Only your Arduino Espora is needed for this example.
joystick and slider to control the color of the RGB led on the Esplora
(:divend:)
the RGB led is composed by three channels that represent the three primary colors: red, green and blue. Each of these colors is controllable in intensity with one of the functions provided by the Esplora library:
Or if you want control all the colors with one instruction you can use the writeRGB() function. Moving the cursor of the joystick and changing the position of the linear potentiometer will generate different values depending on the position. These values are used to produce two different outputs, one will appear opening the serial monitor ant the other one will displayed physically on the RGB led.
(:div class=code :) (:source lang=arduino tabwidth=4:) (:divend:)