Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getData missing on windows #9

Open
eadmaster opened this issue Sep 6, 2018 · 2 comments
Open

getData missing on windows #9

eadmaster opened this issue Sep 6, 2018 · 2 comments

Comments

@eadmaster
Copy link

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?

@zsquareplusc
Copy link
Member

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.

@eadmaster
Copy link
Author

eadmaster commented Sep 17, 2018

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 added a commit to eadmaster/pyparallel that referenced this issue Sep 28, 2018
tested on Windows 10 with giveio64 driver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants