Page 1 of 1

Using a single buton to make several outputs

Posted: Thu Sep 29, 2011 2:30 am
by tompzone
Hi i been having trouble doing a simple task, i want to send a message to a lcd using a button (any port) and do nothing, then using the same button send another one one line below, so i can see the two messages, but i cant figure out how to do this because every time i try with the button (momentary push button) it sends me the two messages, i tried alot of thins (incrementing a variable doesnt seem to work it always goes back to 0 i tried b=a+a b being the vairable and a the button but it always shows 2 and when the button is released it goes back to 0 so it doesnt work), i think that i could do it with ASM instructions (using the JZ and the jumping to the messsage), so if you have any idea how to do it or at least using the ASM commands i would be very grateful
thaknks

Re: Using a single buton to make several outputs

Posted: Thu Sep 29, 2011 10:07 am
by Benj
Hello,

This file should help you to get started.

Re: Using a single buton to make several outputs

Posted: Fri Sep 30, 2011 12:01 am
by tompzone
thanks alot ben just what i wanted to do