Continuous Temperature Sensor with LED Indicator Program using linked compile for the functions.
The main program: tempmain.c
GPIO Setup program (function): setupPi.c
LED Off program (function): leds_off.c
Read Temperature Sensor program (function): readTemp.c
Turn on LED Corresponding to Temperature (I used 3 temperature ranges): led_temp_on.c
To compile:
gcc tempmain.c setupPi.c leds_off.c readtemp.c led_temp_on.c -lwiringPi
No comments:
Post a Comment