hi i want to setup a multi function button. for example i would like it to work like this, if i pres the button then let go and pres it again fast i want it to write pin 1 high, then if i double press the button and then hold it i want it to set pin 2 high, then triple press then hold would set pin 3 high. ive been looking at examples but i have not found anything thats showing what im trying to do. i already have the button setup to pull pin A5 low when pressed/pulled high when released
single press then hold activate pin 1
double press then hold activate pin 2
triple press and hold activate pin 3.