SINGLE PASS Example Temperature Sensor with LED Indicator Program using linked compile for the functions.
The main program: tempmainEx.c
GPIO Setup program (function): setupPiEx.c
LED Off program (function): leds_offEx.c
Read Temperature Sensor program (function): readTempEx.c
Turn on LED Corresponding to Temperature (I used 3 temperature ranges): led_temp_onEx.c
To compile:
gcc tempmainEx.c setupPiEx.c leds_offEx.c readtempEx.c led_temp_onEx.c -lwiringPi
You'll see on the display when certain entries and exits to and from functions occur.
No comments:
Post a Comment