Wiring pi imply that you configure a little bit GPIO also.
Small manipulation that I do not remember really well.
You can check http://wiringpi.com/reference/setup/
If I remember well, you need also i2c.
I now that you need to setup it before using GPIO.
The code was proof of concept and early binding of the wiringPi it is
incomplete but you should be able to blink led.
The VM do not had been update since a long time (It will be re-up soon),
so with WiringPi and a 4.0 should work.
In 5.0 I do not know depending if there are some change in FFI in the
image side.
------ Message d'origine ------
De : "Thierry Goubier" <thierry.goub...@gmail.com>
À : "Any question about pharo is welcome" <pharo-users@lists.pharo.org>
Envoyé 14/06/2016 11:36:55
Objet : Re: [Pharo-users] [Raspberry Pi] Accessing GPIO pins on
Raspberry Pi?
Hi Steven,
I'm also interested. I'll received a Pi 3 soon and I'll want to use the
GPIO as well, as well as looking
at performances issues, especially at the IDE level.
Have you tried to use:
- command line manipulation of the GPIO via OSProcess ?
Create a GPIO file access:
echo 11 > /sys/class/gpio/export
Configure the Pin Direction (In/Out):
echo out > /sys/class/gpio/gpio11/direction
Write a value to turn on the LED using the GPIO11:
echo 1 > /sys/class/gpio/gpio11/value
Now your led should be ON!!!
Write a value to clear the LED using the GPIO11
echo 0 > /sys/class/gpio/gpio11/value
Now your led should be OFF!!!
Delete the created GPIO (11)
echo 11 > /sys/class/gpio/unexport
(you can run those commands from Pharo)
Those commands reach ~ 4 kHz on toggling on or off a gpio pin.
Thierry
2016-06-14 16:28 GMT+02:00 sergio ruiz <sergio....@gmail.com>:
Please keep us posted on this.
I have a project that his waiting on this.
Thanks!
> On Jun 13, 2016, at 11:10 AM, Steven Costiou
<steven.cost...@kloum.io> wrote:
>
> Hi,
>
> i have tried to make it work but so far i can't get it right. Have
you been able to work with it ?
>
> I used pharo 5 latest non spur image with the non spur vm. It works
on a raspberry 3 but it is very slow. I tried the led examples, the
leds do not seem to be affected (some are on, some off, with a
variable intensity).
>
>
> Is there any specific settings needed for this to work ?
>
> Thanks,
>
> Steven.
>
>
> Le 2016-05-27 20:11, sergio ruiz a écrit :
>
>> does anyone know if if pharo 5 runs on raspberry pi yet?
>>
>> if so, i can poke around and see if i can get WiringPi to install
on pharo 5.
>>
>> thanks!
>>
>>
>>> On May 27, 2016, at 1:56 PM, sergio ruiz <sergio....@gmail.com>
wrote:
>>>
>>>>
>>>> The raspberry pi slave seems to be disconnected so do not know
the
>>>> status:
>>>> Library:
>>>>
https://ci.inria.fr/pharo-contribution/job/WiringPi-ARM-AutomatedBuild/
>>>> Pharo code ( probably on Pharo 3 or 4).
>>>> http://smalltalkhub.com/#!/~jeanbaptistearnaud/WiringPi
>>>
>>> great! i'll take a look at those!
>>>
>>> thanks!
>>>
>>> ----
>>> peace,
>>> sergio
>>> photographer, journalist, visionary
>>> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
>>> http://www.Village-Buzz.com
>>> http://www.ThoseOptimizeGuys.com
>>> http://www.CodingForHire.com
>>> http://www.coffee-black.com
>>> http://www.painlessfrugality.com
>>> http://www.twitter.com/sergio_101
>>> http://www.facebook.com/sergio101
>>
>> ----
>> peace,
>> sergio
>> photographer, journalist, visionary
>> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
>> http://www.Village-Buzz.com
>> http://www.ThoseOptimizeGuys.com
>> http://www.CodingForHire.com
>> http://www.coffee-black.com
>> http://www.painlessfrugality.com
>> http://www.twitter.com/sergio_101
>> http://www.facebook.com/sergio101
>
> --
> kloum.io
----
peace,
sergio
photographer, journalist, visionary
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel
antivirus Avast.
https://www.avast.com/antivirus