Re: Raspberry Pi GPIO

2016-06-12 Thread Mark Wieder
On 06/09/2016 03:38 PM, Richard Gaskin wrote: What's needed to work with the GPIO on RPi? I'd like to work with a motion sensor, and would prefer to work with LC instead Python if I can. Not LC, but I came across a very nice Forth for the pi: supports C-code primitives and has a GPIO example

Re: Raspberry Pi GPIO

2016-06-11 Thread [-hh]
Currently I ran = Lubuntu 15.10 on Raspi2, runs LC 6.5.1 and 7.0.4 without any problem = Xubuntu 16.04 on Raspi3, runs LC 6.5.1 and 7.0.4 without any problem installed from here: https://ubuntu-pi-flavour-maker.org/download/ There is also Ubuntu Server Minimal 16.04 for Raspi3 ... -- View th

Re: Raspberry Pi GPIO

2016-06-11 Thread Richard Gaskin
Earlier I wrote: Yesterday my Pi3 arrived and I tried once again to see if any of the three most recent LC builds would run on it. And once again, as with my Pi2, the older of the three crashes on launch, the other two crash as soon as I click anywhere in the menu bar. Too bad, since the Pi is

Re: Raspberry Pi GPIO

2016-06-11 Thread Richard Gaskin
-hh wrote: > Forgot to mention, in case you are interested in WebIOPi, > there is a patch: > > WebIOPi-0.7.1 Patch for Raspberry B+, Pi2, and Pi3 > https://github.com/doublebind/raspi/ > > I had it running on Raspi2, but not yet on Raspi3. Thanks. Bookmarked for when I get back to that. Right n

Re: Raspberry Pi GPIO

2016-06-11 Thread [-hh]
Forgot to mention, in case you are interested in WebIOPi, there is a patch: WebIOPi-0.7.1 Patch for Raspberry B+, Pi2, and Pi3 https://github.com/doublebind/raspi/ I had it running on Raspi2, but not yet on Raspi3. -- View this message in context: http://runtime-revolution.278305.n4.nabble.co

Re: Raspberry Pi GPIO

2016-06-11 Thread [-hh]
Perhaps the best "library" to Raspi-GPIO, that may also answer most of your technical questions (in the C-part). http://elinux.org/RPi_GPIO_Code_Samples Note the line in the C example that explains how to make this "Raspi 1"-code working on a Raspi 2. Especially for you the WebIOPi may be also i

Re: Raspberry Pi GPIO

2016-06-10 Thread Mike Doub
Sorry,  this is beyond me as well -= Mike On Jun 10, 2016, 1:15 PM, at 1:15 PM, Richard Gaskin wrote: >Michael Doub wrote: > > Richard, > > > > You initial gut reaction is STILL correct. Currently the only > > solution available to livecoders is the file method. > >What is "the file method

Re: Raspberry Pi GPIO

2016-06-10 Thread Michael Doub
I think you have to poll. This would be another feature that might go on the list to be done with LCB. -= Mike On 6/10/16 1:26 PM, Richard Gaskin wrote: Earlier I wrote: > What is "the file method"? How do I treat GPIO connections as file > paths? Somewhere in /proc? > > Earlier you wrot

Re: Raspberry Pi GPIO

2016-06-10 Thread Richard Gaskin
Earlier I wrote: > What is "the file method"? How do I treat GPIO connections as file > paths? Somewhere in /proc? > > Earlier you wrote: > > Look at the comments in the library it self for how to solve > the Accessing the GPIO (of a raspberry pi) without "sudo" problem. > > The stack s

Re: Raspberry Pi GPIO

2016-06-10 Thread Richard Gaskin
Michael Doub wrote: > Richard, > > You initial gut reaction is STILL correct. Currently the only > solution available to livecoders is the file method. What is "the file method"? How do I treat GPIO connections as file paths? Somewhere in /proc? Earlier you wrote: Look at the comments

Re: Raspberry Pi GPIO

2016-06-10 Thread Michael Doub
Richard, You initial gut reaction is STILL correct. Currently the only solution available to livecoders is the file method. The performance of this solution is terrible and limits the types of real world problems that can be solved with livecode and raspberry pi. It would be wonderful if

Re: Raspberry Pi GPIO

2016-06-10 Thread Richard Gaskin
Michael Doub wrote: > Richard, Take a look at the code in the MasterLibrary. Look at the > comments in the library it self for how to solve the Accessing the > GPIO (of a raspberry pi) without "sudo" problem. > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 Thanks, Mi

Re: Raspberry Pi GPIO

2016-06-10 Thread Richard Gaskin
-hh wrote: > Using the GPIO is nothing else than writing zeros or ones to a file. > Nobody needs a library for that? > [Also there was a talk about that at the last LC US-conference.] I'll see if I can find that one on the DVDs. What is the LC syntax for something like: open file GPIO pin 6

Re: Raspberry Pi GPIO

2016-06-10 Thread Michael Doub
Richard, Take a look at the code in the MasterLibrary. Look at the comments in the library it self for how to solve the Accessing the GPIO (of a raspberry pi) without "sudo" problem. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 Regards, Mike On 6/9/16 6:38 P

Re: Raspberry Pi GPIO

2016-06-09 Thread [-hh]
Using the GPIO is nothing else than writing zeros or ones to a file. Nobody needs a library for that? [Also there was a talk about that at the last LC US-conference.] The problem is to use the *correct* files or pins numbering respectively. This is hardware dependent, not a problem of using LC or

Re: Raspberry Pi GPIO

2016-06-09 Thread Monte Goulding
It looks like you could do this very easily in script. A good community project to write a library and see what you can do with it! http://luketopia.net/2013/07/28/raspberry-pi-gpio-via-the-shell/ Cheers Monte > On 10 Jun 2016, at 8:38 AM, Richard Gaskin wrote: > > What's needed to work with