[Newbies] FileDirectory exists: returns false for GPIO RasPi
herbertkoenig at gmx.net
Thu Jan 29 08:58:12 UTC 2015
Ok, I worked around it by just repeating to open the file until I get
back a FileStream.
Not that I like the approach, ideas still welcome :-))
Am 28.01.2015 um 15:51 schrieb Herbert König:
> I'm trying to use the GPIO on the Raspberry Pi.
> After I export a GPIO before setting its direction I need to wait
> until all Folders and files of the GPIO pin are created.
> I try this with:
> FileDirectory default fileExists '/fullPathToTheGpio/direction'
> This never returns true.
> Any hint on how to find out when I can start writing to the file?
> I I just wait 3 seconds before writing to the pin for the first time
> it works. Subsequent writes work instantly.
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners