I am having trouble understanding how to send signals to the parallel port.
It is working, I just dont understand how to send a signal to the correct port. Right now it looks kind of random to me
This is how I think it works:
11111111 means that I am addressing all the ports. Where I use 0 or 255 to turn them on/off.
00000000 means that I am not addressing any of them.
00110000 means that I am addressing port 3 and 4.
I know I have to convert the binary number into a int in order to send it (using the windows calculator for this)
But it does not work as expected. Any thoughts on what I am doing wrong?