Question: Modify the provided gpiointerrupt.c code. Your code needs to check the buttons every 2 0 0 ms , check the temperature every 5 0 0

Modify the provided gpiointerrupt.c code. Your code needs to check the buttons every 200ms,
check the temperature every 500ms, and update the LED and report to the server every second (via
the UART). If you push a button, it increases or decreases the temperature set-point by 1 degree
every 200ms. If the temperature is greater than the set-point, the LED should turn off. If the
temperature is less than the set-point, the LED should turn on (the LED controls a heater). You can
simulate a heating or cooling room by putting your finger on the temperature sensor. The output to
the server (via UART) should be formatted as . This can be broken down as follows:
AA = ASCII decimal value of room temperature (00-99) degrees Celsius
BB = ASCII decimal value of set-point temperature (00-99) degrees Celsius
S =0 if heat is off, 1 if heat is on
CCCC = decimal count of seconds since board has been reset

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!