Hello good morning friends,
I’m trying to create a button that turns on LEDs.
I put all the cables together to make it easier.
39 GND
37 input
35 green
33 red
31 yellow
29 power line for 3-pin button
When running the script I get an error message saying that the button pin is inaccessible.
$ sudo python rockgpiobaby.py
Traceback (most recent call last):
File “/home/rock/cinebaby/scripts/rockgpiobaby.py”, line 18, in
button = mraa.Gpio(37)
File “/usr/lib/python3/dist-packages/mraa.py”, line 666, in init
_mraa.Gpio_swiginit(self, _mraa.new_Gpio(pin, owner, raw))
ValueError: Invalid GPIO pin specified
Why can’t I access pin 37?
Attached the python code.Python Script