Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with Pibus and RPi3B+
#91
Ok.

What I found is RPi.GPIO

From your post I figure it out that I need to test GPIO23, which is pin 16.

Code:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(16, GPIO.OUT)

for i in range(20):
    GPIO.output(16,True)
    time.sleep(1)
    GPIO.output(16,False)
    time.sleep(1)
GPIO.cleanup()


And there's no sound. So I'm doing something wrong, or relay doesn't click.

Tried GPIO.BCM as well with pin 23. Same result.

[Bild: uRe1rjp.jpg][Bild: TjHvJoP.jpg]
Zitieren


Nachrichten in diesem Thema
RE: Need help with Pibus and RPi3B+ - von Encik - 15.07.2019, 17:46
RE: Need help with Pibus and RPi3B+ - von TooEasyL2P - 13.04.2020, 20:14

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 2 Gast/Gäste