Mais conteúdo relacionado
Semelhante a Robotix Tutorial 8 (20)
Robotix Tutorial 8
- 1. 31 st Jan to 1 st Feb 2008 TECHNOLOGY ROBOTICS SOCIETY Indian Institute of Technology, Kharagpur
- 7. Accessing Parallel Port – VC ++ #include <conio.h> #define Data 0x378 // Base address #define Status 0x379 // Base address + 1 #define Control 0x37a // Base address + 2 int main () { unsigned char Bits; Bits = 0b11001010; _outp(Data, Bits); /* output data */ Bits = _inp(Status);/* input data */ return (0); }