I have a project which requires me to write a program to read a value of LED status on a microprocessor board using C++. I understand how to input a value from a keyboard using cin and using arguments to set a value but I am unsure how to get an input from a microprocessor which is connected via USB (portB).
I was wondering which commands would be the best to accomplish this??