[Newbies] Read RasPi GPIO
limitcase at gmail.com
Wed Jan 28 13:13:06 UTC 2015
Is there a StandardFileStream>>reset?
On Wed, Jan 28, 2015 at 7:45 AM, Herbert König <herbertkoenig at gmx.net>
> I can successfully read a GPIO Pin on the RasPi if I do it like:
> dataFile ensureOpen.
> value := dataFile upToEnd.
> dataFile close.
> dataFile is the /sys/class/gpio/gpioxx/value file that exists after
> exporting gpioxx.
> Without the reopening and closing of the file I get '' on subsequent reads
> which means that
> StandartFileStream>>basicNext answers nil.
> Is there a way to get the values without having to close and reopen the
> file each time?
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners