I'm trying to get a little program working and I'm not sure whether it is my program or my circuit.
I will start with my script:
Code: Select all
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) for i in range(1,26): try: GPIO.setup(i,GPIO.OUT) except: continue time-sleep(1) GPIO.cleanup()
After cleanup I do have ~-0.1V on the pins (think it's normal when positive), when running program it's -4.8V.
So GND -> Resistor -> LED -> GPIO is working.
And GPIO -> Resistor -> LED -> GND is not. (Or working with transistor)
I don't think there's something wrong with my cabling since I build a lot of other circuits.
But I don't think the script is wrong also.
Someone has any idea?
The board is Mark1 btw.