http://www.futureelectronics.com/en/Search.aspx?dsNav=Ntk:PartNumberSearch%7cPSoC+101%7c1%7c,Ny:True,Nea:True . As you pressed the button it counted up and changed the state of the output pins accordingly. There is actually a component that can do all tha