What you need to know before starting your first project
Your 10 First Projects (Hero / UNO R3)
The 37 in 1 Sensor Kit
Learning Components
Your First 10 Projects With The Arduino/HERO Simulator
Code Like A Wizard
Wizard Coding

Lesson 04: Simulation steps

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.