Go to advanced search

by joshi215
Thu Aug 15, 2019 8:55 am
Forum: Python
Topic: Python music player
Replies: 1
Views: 1516

Python music player

Hello there, I have got a problem with playing sounds on a raspberry pi (Model B with 26 GPIO pins) via pygame in Python. I used the following code (also tried it with a wav but with the same result): import pygame pygame.init s=pygame.mixer.Sound("/home/pi/Sound1.mp3") # s.play() But I got the foll...
by joshi215
Tue Aug 13, 2019 5:50 pm
Forum: Python
Topic: GPIO Input doesn't work
Replies: 8
Views: 1395

Re: GPIO Input doesn't work

Thank all of you; Now it is working correctly
by joshi215
Mon Aug 12, 2019 2:55 pm
Forum: Python
Topic: GPIO Input doesn't work
Replies: 8
Views: 1395

GPIO Input doesn't work

Hello there, I have a problem with the GPIO pins of a Raspberry Pi (Model B with 26 GPIO pins). I have wrote the following Code with Python (Thonny) import Rpi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) out1=0 buzzer1=1 GPIO.setup(out1, GPIO.OUT) GPIO.setup(buzzer1, GPIO.IN) GPIO.output(out1, G...

Go to advanced search