-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Component: DACRegarding the DAC componentRegarding the DAC componentComponent: PWMRegarding the PWM componentRegarding the PWM componentenhancementNew feature or requestNew feature or request
Description
Currently calling analogWrite
will attempt to write the value into the DAC peripheral, producing an exact analog voltage.
The regulard Arduino API analogWrite would start a PWM output with some default parameters (e.g., PWM frequency, PWM resolution etc.) on that pin.
The functionality should be changed so that analogWrite
also starts a PWM wave and friend functions for setting resolution and frequency should be added.
Currently, PWM functionality is available via the PWM
class
(and is partly not working, see #4)
The DAC functionality should still be accessible of course -- it has to be thought to which API it should be moved, or if an "auto-detection" between PWM and DAC should be made.
Metadata
Metadata
Assignees
Labels
Component: DACRegarding the DAC componentRegarding the DAC componentComponent: PWMRegarding the PWM componentRegarding the PWM componentenhancementNew feature or requestNew feature or request
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity