/************************************************************************************************
* LAB TEST 2025 - TRAFFIC LIGHTS *
* *
* Student Name: Indervir Rai *
* *
* Description: You will need to wire and code the following program: *
* Attach all items (breadboard is optional). When the program runs, *
* a green, yellow then red light should flash (none at the same time). When *
* the red light is on, a STOP! message should be displayed on the LCD screen, a SLOW! *
* message when the yellow light is on and a GO! message when the green light is on. *
* These messages should flash on and off (a blank screen between messages). *
* The speed that you cycle through the lights/delays should be controlled by the *
* potentiometer. The delay between lights should range between 200-500 milliseconds. *
* The program must be properly commented, indented and variables must be created *
* using proper naming procedures. You must use PORTB and DDRB commands when setting up and *
* controlling the LED's. The LiquidCrystal I2C library has been added for you. *
* *
* GOOD LUCK! *
* *
***********************************************************************************************/
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 columns and 2 rows
void setup() {
lcd.init(); // initialize the lcd
lcd.backlight(); // turn on backlight
}
void loop() {
}