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 ms
check the temperature every ms 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 setpoint by degree
every ms If the temperature is greater than the setpoint, the LED should turn off. If the
temperature is less than the setpoint, 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 degrees Celsius
BB ASCII decimal value of setpoint temperature degrees Celsius
S if heat is off, 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
