Re: RPI.GPIO Help

2015-09-14 Thread hakugin . gin
On Sunday, September 13, 2015 at 2:09:11 AM UTC-4, John McKenzie wrote: > Hello, there. > > Hakugin, thank you you as well. I took the basic ideas you showed me for > improvement and used them. The pulse settings variable was not liked by > the interpreter, so I simplified it. I turned it

Re: RPI.GPIO Help

2015-09-13 Thread John McKenzie
Hello, there. MRAB, thank you for teaching me proper Python syntax for how I tried to use the or operator. Dennis, I must have learned allot recently as I believe I understood 99% of that code. I see how it is not just more advanced, but actually better than what I had. However, line 47

Re: RPI.GPIO Help

2015-09-11 Thread John McKenzie
Hello. Thanks to the help of people here and in other newsgroups I seem to have something working doing the basics. (Buttons work, colours light up appropriately.) When I followed MRAB's instructions and read about scopes of variables that solved my most recent problem, but it introduced

Re: RPI.GPIO Help

2015-09-11 Thread MRAB
On 2015-09-11 19:24, John McKenzie wrote: Hello. Thanks to the help of people here and in other newsgroups I seem to have something working doing the basics. (Buttons work, colours light up appropriately.) When I followed MRAB's instructions and read about scopes of variables that

Re: RPI.GPIO Help

2015-09-11 Thread hakugin . gin
On Friday, September 11, 2015 at 2:25:15 PM UTC-4, John McKenzie wrote: > Hello. > > Thanks to the help of people here and in other newsgroups I seem to have > something working doing the basics. (Buttons work, colours light up > appropriately.) > def red_button(channel): > global

Re: RPI.GPIO Help

2015-09-11 Thread hakugin . gin
On Friday, September 11, 2015 at 2:25:15 PM UTC-4, John McKenzie wrote: > Hello. > > Thanks to the help of people here and in other newsgroups I seem to have > something working doing the basics. (Buttons work, colours light up > appropriately.) > > When I followed MRAB's instructions and

Re: RPI.GPIO Help

2015-09-10 Thread John McKenzie
MRAB: Thanks for replying. I got so hyper focused on solving my hardware problems, and excited that I did, that I forgot details from previous comments. Thanks for your post. Off to make things global... -- https://mail.python.org/mailman/listinfo/python-list

Re: RPI.GPIO Help

2015-09-09 Thread John McKenzie
Hello. As per the suggestion of two of you I went to the Raspberry Pi newsgroup. Dennis is also there and has been posting in response to my problems. Between there and the Raspberry Foundation website I discovered that my wiring did not match my code and changed all PUD_DOWN to PUD_UP and

Re: RPI.GPIO Help

2015-09-09 Thread MRAB
On 2015-09-09 20:03, John McKenzie wrote: Hello. As per the suggestion of two of you I went to the Raspberry Pi newsgroup. Dennis is also there and has been posting in response to my problems. Between there and the Raspberry Foundation website I discovered that my wiring did not match my

Re: RPI.GPIO Help

2015-09-02 Thread John McKenzie
Hakugin: Thanks for the correction. Someone elsewhere showed me example code that was very close to yours, with that being the main difference. His gave an error message that red_button was undefined so I moved the code block below the callbacks. After that it ran without producing errors

Re: RPI.GPIO Help

2015-09-01 Thread Johannes Bauer
On 31.08.2015 19:41, John McKenzie wrote: > Still checking here and am discussing all this in the Raspberry pi > newsgroup. Thanks to the several people who mentioned it. > > Again, still listening here if anyone has any more to add. I've had the problem to use interrupt-driven GPIOs on the

Re: RPI.GPIO Help

2015-08-31 Thread John McKenzie
Dennis, Hakugin, I tried your scripts and had to alter a typo here or there, but once the basic errors disappeared I had the same error message. "Conflicting edge detection already enabled for this GPIO channel". As much as I despise web based bulletin board systems I registered on the

Re: RPI.GPIO Help

2015-08-31 Thread MRAB
On 2015-08-31 18:41, John McKenzie wrote: Dennis, Hakugin, I tried your scripts and had to alter a typo here or there, but once the basic errors disappeared I had the same error message. "Conflicting edge detection already enabled for this GPIO channel". Are you still calling

Re: RPI.GPIO Help

2015-08-31 Thread hakugin . gin
On Monday, August 31, 2015 at 1:42:16 PM UTC-4, John McKenzie wrote: > Dennis, Hakugin, I tried your scripts and had to alter a typo here or > there, but once the basic errors disappeared I had the same error > message. "Conflicting edge detection already enabled for this GPIO > channel". > >

Re: RPI.GPIO Help

2015-08-31 Thread Tim Daneliuk
On 08/16/2015 02:40 PM, John McKenzie wrote: > > Hello, all. I am hoping some people here are familiar with the RPi.GPIO > python module for the Raspberry Pi. I am not familiar with the module, but I am quite familiar with dealing with hardware interfacing, mostly in assembler. One thing you

Re: RPI.GPIO Help

2015-08-28 Thread John McKenzie
Thanks for the replies, everyone. Two of you suggested I ask in comp.sys.raspberry-pi. We leave in a world where people cannot tell you the difference between the world wide web and the Internet and tech support for my ISP once told me in response to mentioning that thei news server was not

Re: RPI.GPIO Help

2015-08-28 Thread hakugin . gin
On Friday, August 28, 2015 at 1:40:41 PM UTC-4, John McKenzie wrote: Thanks for the replies, everyone. Two of you suggested I ask in comp.sys.raspberry-pi. We leave in a world where people cannot tell you the difference between the world wide web and the Internet and tech support for my

Re: RPI.GPIO Help

2015-08-20 Thread John McKenzie
Thanks for the reply. Also, thanks to Laura who replied via email. Tried a bunch of things based off these comments and I always ended up with one of two situations, the channel conflict error, or an instant run and quit issue. This new version of the code runs but is unresponsive. I

Re: RPI.GPIO Help

2015-08-20 Thread MRAB
On 2015-08-20 16:12, John McKenzie wrote: Thanks for the reply. Also, thanks to Laura who replied via email. Tried a bunch of things based off these comments and I always ended up with one of two situations, the channel conflict error, or an instant run and quit issue. This new version of

Re: RPI.GPIO Help

2015-08-20 Thread alister
On Thu, 20 Aug 2015 16:45:53 +0100, MRAB wrote: On 2015-08-20 16:12, John McKenzie wrote: Thanks for the reply. Also, thanks to Laura who replied via email. Tried a bunch of things based off these comments and I always ended up with one of two situations, the channel conflict error,

RPI.GPIO Help

2015-08-16 Thread John McKenzie
Hello, all. I am hoping some people here are familiar with the RPi.GPIO python module for the Raspberry Pi. Very new to Python and electronics. Not to computing in general though. I posted for help about accepting key presses and then discovered that wiring up buttons directly to the Pi was

Re: RPI.GPIO Help

2015-08-16 Thread MRAB
On 2015-08-16 20:40, John McKenzie wrote: Hello, all. I am hoping some people here are familiar with the RPi.GPIO python module for the Raspberry Pi. Very new to Python and electronics. Not to computing in general though. I posted for help about accepting key presses and then discovered