CSC 615 Assignment 1 – Traffic Light
This project implements a traffic light simulation using a Raspberry Pi Zero 2. It includes two versions:
assignment1_pigpio.c- Uses the PiGPIO library for GPIO control.assignment1b.c- Uses direct memory access to manipulate GPIO registers.
make- Compiles both versions of the program.make pigpio- Compiles only the PiGPIO version (assignment1_pigpio).make direct- Compiles only the direct memory access version (assignment1b).
make run_pigpio- Runs the PiGPIO version (assignment1_pigpio).make run_direct- Runs the direct memory access version (assignment1b).
make clean- Removes all compiled binaries.
# Compile both programs
make
# Run PiGPIO version
make run_pigpio
# Run Direct Memory Access version
make run_direct
# Run both versions
make run
# Clean compiled files
make clean