GassistPi icon indicating copy to clipboard operation
GassistPi copied to clipboard

for the owners of the voice hat google card

Open aandroide opened this issue 6 years ago • 3 comments

for the owners of the voice hat google card, you will have noticed that in the gassistpi project a second button is integrated. in pushbutton.py pin 22 trigger does not work on this board because it seems to be programmed to be used as a driver. I solved by setting the gpio 26 that is printed under the servo 0 in the card, and modified the gpio values ​​in the pusbutton.py script from 22 to 26 I hope it can be useful to others too. regards https://www.google.it/search?q=gpio+22+voice+hat+google&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjiu8yPhfTZAhUFSBQKHe6_AWkQ_AUICygC&biw=1366&bih=637#imgrc=SdDB0nuZkuJgeM:

aandroide avatar Mar 17 '18 20:03 aandroide

I'm not sure what you mean by "setting the gpio 26 that is printed under the servo0"? I see the pin you're talking about - but how do I "set" it? Any help apriciated..

kengberg avatar Apr 05 '18 11:04 kengberg

hi, you need to edit the pushbutton.py file where it says: #Trigger Pin GPIO.setup(22, GPIO.IN, pull_up_down = GPIO.PUD_UP) change to: #Trigger Pin GPIO.setup(26, GPIO.IN, pull_up_down = GPIO.PUD_UP)

finally scroll to the end of the script and also change: while True: if wait_for_user_trigger: button_state=GPIO.input(22) change to: while True: if wait_for_user_trigger: button_state=GPIO.input(26)

Enzoinventor avatar Apr 05 '18 20:04 Enzoinventor

if you have the aiy kit and instead you want to send the commands with the original button and stop the actions with another button, in pushbutton instead of 26 you have to write 23. And you must also edit the stopbutton.py file from 23 to 26

Enzoinventor avatar Apr 05 '18 20:04 Enzoinventor