I/O
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).