I'm putting together a prop right now from scratch. It's a TNG cricket phaser that I designed and printed at home. I've assembled all the guts I hope I need to pull this off. Right now I'm facing down the programming. I'm mostly a novice on that end, having pieced together code for various light and sound projects in the past, but nothing like this. Here is where I need some feasibility advice and a gentle push in the right direction.
The phaser has three buttons, an indicator consisting of eight neopixels, and an emitter that is also a neopixel. Button 1 with be a power button with a momentary switch on a latching circuit connected to a battery charger. No programming needed there. Button 2 will do several things:
With a quick press is will increase the light on the indicator incrementally from 1 to 8 and then back to one.
With each increase in the "setting" the lights and sound will change when button 3, the trigger is pressed. For some settings there will be an on press and release action. Some settings will active and end with the press of the trigger. Some will only sustain as long as the trigger is pressed down. There will also be a change in the lighting of the emitter.
When button 2 is long pressed a light and sound sequence with happen on its own without button three being pressed.
So, is this all possible? And are there tutorials out there that can help? I've been looking at cycles and button monitoring and they seem to want a four pin button. I only have two pin buttons at the moment.
There will be eight settings.
1, 2, and 3 will play a sound and fade in and out the emitter to completion whether the trigger is still depressed or released. These are "single shot" settings. Like a bullet fired.
4 through 8 with play a sound and fade in and light the emitter for as long as the trigger is depressed. When the trigger is released the sound will end, and another sound will play and the emitter will fade out. These are "sustained beams" like a cutting or heating beam. The first sound will be the beam. The second sound will be a fade out sound.
I noticed no movement on this, so I figured you did not offer enough payment to make "your" project and were stuck. Here is a basic "push button LED blink" sketch