Go to advanced search

by PlanB
Tue Oct 28, 2014 11:44 pm
Forum: Beginners
Topic: Inverting a GPIO pin
Replies: 17
Views: 3119

Re: Inverting a GPIO pin

Thnx people, # problem solved with a reboot after keyboard config. Re the pin inversion, what I really want to do is generate antiphase pwm. I can get PWM on one pin easily enough with pwm=GPIO.PWM(12, 10) # setup pulse width mod on pin12 at 10 Hz but how do I get a waveform on pin 11 going that is ...
by PlanB
Tue Oct 28, 2014 6:57 am
Forum: Beginners
Topic: Inverting a GPIO pin
Replies: 17
Views: 3119

Inverting a GPIO pin

Greetings all. Rpi newby with a couple of Qs: 1) I'm trying to make a GPIO output (p1 pin 12) the opposite of another (p1 pin 11). First I tried GPIO.output(12, not 11) but no joy so then I tried GPIO.output(12, not GPIO.input(11)) & success. How come I have to read pin 11 to invert it? Why can't I ...

Go to advanced search