button

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.