Skip to content

Repository files navigation

CSC615-TrafficLight

CSC 615 Assignment 1 – Traffic Light

Traffic Light System - Makefile Instuctions

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.

Build Targets

  • 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).

Run Targets

  • make run_pigpio - Runs the PiGPIO version (assignment1_pigpio).
  • make run_direct - Runs the direct memory access version (assignment1b).

Cleanup

  • make clean - Removes all compiled binaries.

Usage

# 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages