Problem drumhat with raspberry pi 1 A+

I have problem with drumhat
It doesn’t work when I run
Please some help

What version of Raspbian?

Try running and posting the results of:

lsb_release -a
uname -a

Thank you for reply Phil
This is result

import RPi.GPIO as GPIO
GPIO.setup(25, GPIO.IN, pull_up_down=GPIO.PUD_UP)
def test(pin):
GPIO.add_event_detect(25, GPIO.FALLING, callback=test, bouncetime=1)

Try saving the above to a file - - and running it with python Hopefully I’ve not typo’d it!

I believe normally this means another script is potentially using that pin- do you have anything else running on your Pi? Especially Python scripts which might be running on boot.

Thank you Phil
I tried it but runtime error
I got piano hat and it’s running with
Drumhat ran
It’s LED light with rolling