UI Design project

I'm a product designer looking to test a new user interface for a simplified mobile phone concept.

From the users perspective:

One push button

  • makes phone call when held for 5 seconds, doesn't make call if held for less.
  • while held an LED is constantly on as a warning that a call is being made.

One dial

  • 3 call number options
  • whichever is selected at the time of pressing the push button for 5 seconds will be played back to the user.

From our perspective:
One PBS - when held for 5 seconds activates a switch on a secondary circuit that plays back recording (3 possible, 3 corresponding switches), when not held for the full 5 seconds, resets.

3 Reed switches (behind dial)

  • Give either a HIGH or LOW output and tell us which recording to play back when the PBS is held for 5 seconds.

If anyone could suggest some code layout for this or existing examples I would be most grateful.

Thanks

I'm not sure of what cross-posting is. (It was your question of what was the overall design intent that prompted me to ask a broader question with deeper context)

The original question had been answered in the previous post - hopefully this new thread will allow people to comment or suggest ways of achieving the overall code.

Not intended to be annoying.