Quote:
Originally Posted by programMORT11
how would you do this in C without adding the C++ digitalinput objects? could you cast the UINT32 GetDigitalInput() function results to boolean?
|
I don't believe so, because C doesn't have a bool data type. Traditionally boolean logic is done in C with integers with 0 for false and 1 for true. It'll still work the same way. If you have
Code:
if(GetDigitalInput()){
// something
}
it'll work the same way as the C++ bool value.