Using ReadFile to receive circuit input:
Hello friends, I've been working on a program designed to communicate with a sensor circuit that reacts when it's signal gets excited, which then transmits a pulse to an embedded system that then translates the pulse into a 5v serial signal or bits that enter the computer and interact with our program.
The idea is making a presence sensor that when interrupted, makes a LED shine and also lights up a lamp drawn with <winbgim.h>.
The bits have to be processed from the circuit with the ReadFile command.
The question is how can I use the ReadFile from the <windows.h> command to process the bits sent through the embedded system?
Thanks in advance!