Could someone please get me started on this.
I need an up and down button which will increase or decrease a value which I want to compare another value with.
ie: value = 150
when up button pushed a value of 5 is added to (value) making it 155. same for the decrease.
I know what I want to do with this calculation but just seem to get it happening.
Cheers
JOHN
button increase and decrease
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: button increase and decrease
This should get you started.
You have not said whether your variable is byte or Integer, so assumed the former.
Not added switch debounce (which can simply be added), so flowchart is easier to understand.
You have not said whether your variable is byte or Integer, so assumed the former.
Not added switch debounce (which can simply be added), so flowchart is easier to understand.
- Attachments
-
- Button1.fcf
- (6.5 KiB) Downloaded 390 times
Martin
Re: button increase and decrease
Thanks alot. That did help. I managed to nut it out a slightly different way, but yours will be used as well.
Cheers
JOHN
Cheers
JOHN