Making a soft pot into an on/off button

Hi, I am using a soft potentiometer to control the heat on a heat pad that I have wired up. I am wanting to make the soft pot turn into an on/off button with a double press.

Problem is I have no idea how to code this into my micro board, Just wondered if it is simple and if anyone knew how?

Thanks

Toby

  1. what's a soft pot?
  2. do you have a wiring diagram or description?
  3. post your code?

I am using a soft potentiometer

A link to this device would be useful. Are you talking about a flex sensor?

I am wanting to make the soft pot turn into an on/off button with a double press.

Given that the device appears to be an analog device, you'll need to explain what you mean by "a double press". "If successive readings from the device exceed a threshold, drop below the threshold, and exceed the threshold again within 500 milliseconds, toggle the state of output pin xx" is an example of a requirement that can be coded. "turn into an on/off button with a double press" is not.

GoForSmoke:

  1. what's a soft pot?
  2. do you have a wiring diagram or description?
  3. post your code?

#3 is not a question. It is a statement.

Or it's short for "Will you post you code?".
The question mark at then end, that's a clue.