pyparallel icon indicating copy to clipboard operation
pyparallel copied to clipboard

getData missing on windows

Open eadmaster opened this issue 7 years ago • 2 comments

i'm trying to reuse the same code on both Windows and Linux and i've just found the getData method is missing on Windows. Any alternative i can use?

eadmaster avatar Sep 06 '18 19:09 eadmaster

No, there isn't anything implemented for Windows. Windows seems to not provide a parallel port API at all, just some higher level printer port API. Therefore the implementation on Windows accesses the peripheral directly, which in turn requires a driver to allow to do this. In theory, that code accessing the peripheral could be extended but there are some problems. The driver may or may not working on newer Windows versions and the way it is implemented does not support USB attached parallel ports etc.

zsquareplusc avatar Sep 17 '18 00:09 zsquareplusc

simpleio have an inp() function that is missing in the parallelwin32.py for some reason...

Btw, both _inp() and _outp() are now deprecated, so maybe a better idea to switch to InpOut32 for Windows support.

eadmaster avatar Sep 17 '18 11:09 eadmaster