|
Read/Write LEGO USB Tower
Hi All
I am playing around with /dev/usb/legousbtower0 and was wondering what you need to do to read data in from file.
I know it is a character device so you can treat it a lot like a regular file... but how do you handle the case when there is no data ready to be read in? I think I need to do something with fcntl or iocntl or something. :/ Can anyone give me any sort of hint?
Thanks,
Sam
|