button

Arrch:

packingtape:
thanks sir for the reply :slight_smile:
sir can i have sample code?
my project is a gun sound effect, when i press the trigger it will sound once, until i press it again :slight_smile:

Look at the Signal Edge Detection example in the Arduino program.

sir this my project..
the problem is when i press and hold the button the sound loop, what i what is when i press and hold the button it will play once.. :slight_smile: