Saturday, August 21, 2010

Is it possible to control hardware such as keyboard by c programming?

You dont really control a keyboard (except maybe the led's), you read a keyboard, but yes, you can do it with C (or any other language).Is it possible to control hardware such as keyboard by c programming?
yesIs it possible to control hardware such as keyboard by c programming?
yes you can control the way your pc reads information from hardware, peripherals by editing the drivers with C but i would not recomend as you may damage your hardware like dvd drives hope this helps
Of course, you can control it all in c: Keyboard, mouse, display, printer, etc
Yes and no.





It is possible to use (almost any) computer language to ';control'; hardware. However, you do need to know what you are doing (hardware programming is very low level and can get tricky, you could even destroy hardware if not careful).





Also you can't let hardware do what it wasn't meant to do. You can't let the keyboard send characters the user didn't press (you could write a driver to do that). And you can't control the laser in a laser-mouse (just some examples).





However, C is a great language to write drivers with which to control hardware.





[edit: some typos]

No comments:

Post a Comment