BLE_IAS with 2 button toggle function | Cypress Semiconductor
BLE_IAS with 2 button toggle function
I'm working to modify the Central/Peripheral code from 100 Project-100 Days, and would like to add a Pin Input/another button. So, I'm trying to figure out how to use the same software debouncing method, interrupt, and DeepSleep functions, yet have each button change the alert variable a different way. One button will hop between Mild- and Full-Alert, while the second button will hop between No Alert and the last alert prior to button 2 was pressed, like a quick bypass. I have attached the Central code, and so far I've gotten it to connect to the peripheral, but no button functionality afterward. Any insight would be appreciated, and since the button reads is the only thing needed, I wouldn't be opposed to using Debounce either, if necessary.