HMarsafy / Smart-Home-using-Tiva-C

0 stars 1 forks source link

stepper_button_status.c #19

Closed aliamaim closed 5 years ago

aliamaim commented 5 years ago

A function that continuously checks if any of the two buttons in MCU1 controlling the stepper motor is pressed then sends the corresponding key using UART to MCU2.

aliamaim commented 5 years ago

A more general function Is_Pressed which can check if a button is pressed putting into consideration the debouncing effect is made and this function will instead be integrated into the main application code using the "Is_Pressed" function.