The code from the previous lesson is the same as this project, but the only thing that has changed is that the analogRead instruction is not simulated. By not writing it with a capital letter, the analogRead instruction will read the connected potentiometer and controls the LEDs in the simulator with DigitalWrite. This saves a lot of time and effort to connect LEDs, resistors with wires to the Arduino board.
This sketch can be found in the examples provided in the simulator or downloaded on this page.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.