![]() |
Digital Inputs?
Hello!
I am using C++ and I have a question about implementing Digital Inputs in the code... Is Get() the function that means "true" or no? I basically want an if statement saying if DigitalInput1 is true, then this, but I am unsure which function to use to set the condition... =( Thank you!!! :P |
Re: Digital Inputs?
DigitalInput DigtalInput1(1);//port1
if (DigialInput.Get()) { do this } else { do that } |
Re: Digital Inputs?
Thank you!!!!!! :] :]
|
Re: Digital Inputs?
how would you do this in C without adding the C++ digitalinput objects? could you cast the UINT32 GetDigitalInput() function results to boolean?
|
Re: Digital Inputs?
Quote:
Code:
if(GetDigitalInput()){ |
| All times are GMT -5. The time now is 02:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi