-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPIO pins not working when set to output #10
Comments
check the hardware, to see if these pins are connected to GND or VCC |
I have check |
At me after executing gpio.read(pin) (when it set to output ), this pin set to a high level. |
I tried to write on all pins, and 5 6 7 are resetting module, those pin coud be connected to VCC |
My apologies if I'm posting incorrectly. I'm new to Git, programming, and well, everything involving this chip actually. A week ago I knew nothing about HTML, LUA, etc and today I know little more. |
I don't understand why you would want to read a pin that is set as an Now this part I'm not sure about, but I would guess that when you do a Again, the real issue is: What are you trying to accomplish by reading an On Fri, Dec 12, 2014 at 7:29 AM, Scott--R notifications@github.com wrote:
James Newton |
Thanks James. The purpose for the port read is to invert the output from its current state. So, for example, I have a section of code that checks the current status of the output. If it is currently high, then change it to low. If it is currently low, change it to high. I could do this by creating a status variable I suppose, and then check that variable instead of reading the GPIO directly. And you may be correct on the whole "change output to input" thing as well. Thanks for the feedback. This is quite the challenge - I have to learn HTTP, encryption, HTML, PHT, LUA, and probably a bunch of other stuff I haven't even discovered yet to get all of this working. But it's FUN! I've got a bunch of the latest modules on the way over to play with. |
Ah. Google "read modify write problem" for more on why a status variable
|
Hi, I have put some LED on 0,1,2,3 and only pin 1 is working ok, is this normal?
I set them as output, write HIGH or LOW, read value, but values does not change, and leds are not starting, except pin1, GPIO13 is working ok.
0 GPIO12 not working as output
1 GPIO13 working OK
2 GPIO14 not working as output
3 GPIO15 not working as output
8 GPIO0 can this pin be output?
9 GPIO2 can this pin be output?
The text was updated successfully, but these errors were encountered: