im in the process of trying to automate a wheelchair lift for my mother. im approaching it it with the “Onebutton” library. it will do what I want it to do in that I can assign multiple functions to one button depending on the number/length of the press(s). the lift has a horizontal movement and a vertical movement. what I need it to do is with a single press, the lift will deploy to the horizontal limit. then with a 2nd single press, deploy to the vertical movement. my thought process has been to track the number of presses but I cant seen to get it to work. I really need some help! any help would be greatly appreciated!!
I have the example code that im baseing it on as well as the sketch ive created…its not complete so please be gentle!!
Lift_2.0_-_final.ino (6.91 KB)
TwoButtons.ino (3.61 KB)