Convert Code to One Button From Two Button

Completed Posted 7 years ago Paid on delivery
Completed Paid on delivery

I have a arduino sketch for a lightsaber that currently uses two buttons for configuration...I want to convert it only use one button. It should do the following.

In Standby Mode

Click - Enters Saber On Mode

Double-Click - Enters Jukebox Mode

Hold - Enters Config Mode

In Jukebox Mode

Click - Start/Stop Music

Double-Click - Next track

Hold - Exit Jukebox Mode (back to Standby)

In Config Mode

Click - Adds + 1 to current value being assigned

Double-Click - Next Menu

Hold - Save to EEPROM and Exit Config Mode (back to Standby Mode)

In Saber On Mode playing ignition (create new value to track lockup readiness, set to 0 as default)

Click - Turns lockup readiness value to 1 for 1 minute then reverts to value to 0, if a clash is detected while readiness is set to 1, play the lockup sound file and led setting until a swing is detected (setting value back to 0)

Double-Click - Enter blaster block mode (double-click should also exit this mode and go back to Saber On mode)

Hold - Turns off Saber (playing poweroff file and enters Standby Mode)

The modes are already programmed except for the lockup feature I am looking for (it's currently set to Hold on secondary button) so it should be relatively easy

Arduino C Programming

Project ID: #12097782

About the project

9 proposals Remote project Active 7 years ago

Awarded to:

dcongie

Will this be okay? Hold is 2 seconds. There will be a delay response for the 1 click as it will wait to check if it is double click. Triple click or more will be treated as double click.

$25 USD in 2 days
(1 Review)
1.6

9 freelancers are bidding on average $62 for this job

ranganathp

FREELANCER RECOMMENDED ------------------------------------------------------ Can help... I am an Expert... Lets Start! Please start a Discussion with me and we can get started from there... Please check the past p More

$200 USD in 3 days
(14 Reviews)
5.1
estebantoribio

Hi, I'm an Electronics Engineering student from Argentina. I consider I'm able to help you. I'm new to freelancer but that doesn't mean I have no experience, you will get from me the best effort to get a job done that More

$50 USD in 3 days
(7 Reviews)
3.8
sjoshi2711s

A proposal has not yet been provided

$35 USD in 3 days
(0 Reviews)
0.0
mostafanbl

My job is embedded software engineer at Valeo, which makes me have the necessary experience for this job. Furthermore I have used arduino in many competitions at the university and some home applications.

$20 USD in 3 days
(0 Reviews)
0.0