Hi im new to arduino and have basic/hardly any knowledge of arduino prog. Can someone kind enough to write me a programm that does this fairly basic function.
Basically what i need is two switches and one timed output .the output being a solenoid.
Switch 1 =momentary switch : when pressed delay 3.5seconds to switch on output(output stays on for 1sec.) then off again.
Switch 2 Vibration switch: when triggered, output will switch on straight away (stay on for 1sec) then off.
So thats the basic idea. I need both switches to work whenever i need it to. I will using the the program on a digispark