Component: PWM (CAL) (Misc)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 2.2 |
Category | Misc |
Contents
PWM component
CAL = Code Abstraction Layer - Allows one code base to run on a wide range of chips. A low level implementation giving direct access to the Pulse Width Modulation peripheral.
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
Example showing how to build a component using a CAL component Using CAL Components.
Downloadable macro reference
![]() |
GetValue |
Returns Named property Value | |
![]() |
Name |
![]() |
Return |
![]() |
ChangePeriod |
Change the Period (and prescaler) for this PWM Channel | |
![]() |
period |
period value PIC/AVR: 0-255 16-bit PIC: 0-65535 | |
![]() |
prescaler |
prescaler 1,4,16,64 | |
![]() |
Return |
![]() |
Disable |
Disable this PWM Channel | |
![]() |
Return |
![]() |
SetDuty8Bit |
Set the Duty cycle (0-255) for this PWM Channel | |
![]() |
duty |
duty value 0 - 255 | |
![]() |
Return |
![]() |
Enable |
Enable this PWM Channel | |
![]() |
Return |
![]() |
ChangeFrequency |
Advanced function for the ESP32 hardware to set the PWM output frequency. | |
![]() |
Frequency |
New PWM desired frequency in Hz | |
![]() |
Return |
![]() |
SetValue |
Sets the Value of the property PERIOD, PRESCALE or CHANNEL (if CHANNEL also updates the PORT from FCD) | |
![]() |
Name |
![]() |
Value |
![]() |
Return |
![]() |
SetDuty10Bit |
Set the Duty Cycle for this PWM Channel. PIC/AVR - Range: 0-1023 16-bit PIC - Range: 0-65535 | |
![]() |
duty |
Duty value 0 - 1023 | |
![]() |
Return |
![]() |
SetDutyFloat |
Advanced function for the ESP32 hardware to set the PWM duty as a percentage between 0.0 and 100.0 | |
![]() |
Duty |
![]() |
Return |
![]() |
GetList |
Returns CHANNEL or PRESCALE list from the FCD and updates the internal property | |
![]() |
Name |
![]() |
Return |