Great - glad we could help.
no, no i said that is what i want to tell u guys
and also push button as a toggle and how can i disable potentiometer control after the button is pressed and also to keep the same current flow which was decided by potentiometer before pressing button
is code #20 work?
some feedback would be nice
Surely we've given you more than enough examples?
In essence once you've written the value once it'll stay the same until you over-write it with a new value.
sp. "map(knobValue, 0, 1024, 0, 256);"
Let's not start bad habits.
Or just divide knobValue by 4
Leo..
yah , sorry i will send result in few hours i am stuck at some work therefore i was unable to reply
thanks , i will try and tell you
I'm pretty sure the compiler is smart enough to do that particular optimisation for me, so I'll stick with "divide by 4"
yes it worked , thanks for help
Mark as >solution
This statement does nothing. Do you want to toggle the value of changeStop? Then you'll need something like changeStop = !changeStop instead.
damn, you are right
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.