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 :-))

Cheers,

Herbert

Am 28.01.2015 um 15:51 schrieb Herbert König:
Hi,

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.

Thanks,

Herbert
_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to