I know that there are plenty of them already, but none did really help me.
Thing is, that I just want to set some of the data-lines high/low. I also spent the whole day searching with google, but I didnīt find the info I needed (or as easy as I would have needed).
So, I found out, that it would be best to use /dev/parport0 because itīs more low-level than lp0.
So far so good, but I only managed to open and close parport. I just didnīt find out which commands are used just to write binary in it. For example 1010 1010 - to set four data-lines high and four ones low.
Thats what I think I found out until now:
Is that code right? What code line do I have to put in to set some data-lines?Code:#include <stdio.h> int main() { int fd; fd = open("/dev/parport0"); close(fd); return(0); }
Hope you can help me and donīt tell me to google or use search - I really tried...And yes I am a beginner...