I am trying to get a program in C to write data to the parallel port byte wise.
I have got the program running of sorts, I can write to the port and then read the data back with the same value obtained. The problem is that it isnt writting to the port physically. I have some leds connected and they all stay the same (1111000) from mem. Doesnt matter what value I pass to the port.
I am using port 0x378 the default value, setting it to open with ioperm(), and writting with inb and outb.
I am not sure what I am doing wrong, if I have the wrong address. There isnt a port in /proc/ioports, there was but it was being used by parport so i removed that and the port also stoped being listed.
This is my first program using IO ops, well my first program in Linux. So I am a newbie to how it all works.
any help would be much appreciated. I havent attached my code because I dont think that it would help. But if it does i can attach my test program.