Code Solution for Volume 8, Page 19

In this challenge, help Volta and Reggie put the pieces of code back together. Using the circuit on Page 18, you will be able to measure the voltage produced by the solar cell and light up the RGB LED accordingly.

You can change the various thresholds to suit your needs. The current code will: