Final Milestone
My second milestone was to make hall effect sensor values display on the LCD. I used the Arduino liquid crystal library. I basically combined the code I wrote for the LCD to display and the hall effect sensor code. I made a global variable and named it s and set it equal to a variable hallstate. Hallstate reads the hall sensor, stores its values on s. I created a loop and placed my main code for the values in it. So basically I wrote an if statement in which every time the variable hallstate detects any values it adds 1 to it and displays the final result. And then I wrote a set cursor function and set its parameter to the initial value of the variable displayed on the LCD. Then I wrote a LCD print function which prints the values on the LCD. It basically displays the values stored on s on the LCD screen.
First Milestone
Rainbow Light Show