Convert Code to One Button From Two Button

Finalizat Postat la acum 7 ani S-au achitat serviciile după ce au fost prestate
Finalizat S-au achitat serviciile după ce au fost prestate

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 Programare C

ID Proiect: #12097782

Detalii despre proiect

9 propuneri Proiect la distanță Activ acum 7 ani

Acordat lui:

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.

%selectedBids___i_sum_sub_7%%project_currencyDetails_sign_sub_8% USD în 2 zile
(1 părere)
1.6

9 freelanceri plasează o ofertă medie de 62$ pentru proiect

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 Mai multe

$200 USD în 3 zile
(14 recenzii)
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 Mai multe

$50 USD în 3 zile
(7 recenzii)
3.8
sjoshi2711s

A proposal has not yet been provided

$35 USD în 3 zile
(0 recenzii)
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 în 3 zile
(0 recenzii)
0.0