Psuedocode - JBanschick/Jacob_Banschick_-_The_Breather GitHub Wiki

//Device 1

//Hold button for 2 seconds

//Turn on device`

//When Button is quickly pressed once

//Light LED’s in correspondence to device 1 battery level 5 seconds

//When Button is quickly pressed twice

//Light LED’s in correspondence to device 2 battery level 5 seconds

//When Button is held for 8 seconds

//Power down device

//Device 2

//Hold button for 2 seconds

//Turn on device

//When button is pressed for 8 seconds

//Power down device

//Paired Devices

//Device 2 convert received data to double, then send received data as a string to Device 1

//Var1 = heartRate

//Var2 = batPerc

//If number is between 100-140, power up vibration motor.

//Else, do nothing.