I/O

Modified on Wed, 4 Jan, 2023 at 6:39 PM

HITIPanel requires some I/O configuration to be set via our library so that it can retrieve the configuration. This is the case of the Output Type.


Output Type

  • HC_outputType(pin, type)


A Digital Output can be either DIGITAL or PWM. By default, it is DIGITAL. The following function is required to explicitly set the type of a Digital Output for a specified pin:

Parameters:
  • pin (byte): pin number 
  • type (bool): type  =>  DIGITAL (LOW) or PWM (HIGH).
Example

Refer to this example : Analog output (PWM).






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article