Project 1, Pt. 2: Sequenced LEDs

In this experiment, we have built a set of LEDs which turn on and off in a pattern formation. Whilst this may seem to be a simple experiment, the way we have written the code exemplifies the skills we have learnt whilst studying the Arduino.

Screenshots of the code file that I developed for this project.

First of all, the aforementioned code makes use of variables to help simplify the control and modification of aspects such as Pin Configuration and Delay Timers (allowing for easy adaptation of the code when paired with other versions of the Arduino aside from the Arduino Uno).

Additionally, the use of comments and spacing demonstrate good working practices in relation to formatting and providing accessible code.

Download the code from this post here.

Leave a Reply

Your email address will not be published. Required fields are marked *