Use a Grove button with GoPiGo


#1

Hi,
I had purchased a Grove Button https://www.dexterindustries.com/shop/grove-button/
I want to connect it to my GoPiGo and read it’s value wih python scripts.
First, in which port can I connect it ?
Secondly, how can I read it’s value in python ? I didn’t find the doc for doing that.
Thanks in advance, if someone can help me…


#2

You should be able to use the button on the analog or digital port and there is an example here: https://github.com/DexterInd/GoPiGo/blob/master/Software/Python/sensor_examples/grove_button.py.

-Karan