-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Architecture: SAMApplies only to the SAM microcontrollers (Due)Applies only to the SAM microcontrollers (Due)Component: CoreRelated to the code for the standard Arduino APIRelated to the code for the standard Arduino APIType: Bug
Milestone
Description
The macro digitalPinToTimer(P) is supposed to report whether the pin
supports PWM.
This allows doing something like this:
// Check if the pin is associated to a timer, i.e. PWM
// ---------------------------------------------------
if(digitalPinToTimer(_backlightPin) != NOT_ON_TIMER)
The macro in DUE not only doesn't work but is improperly defined:
# define digitalPinToTimer(P) ( )
This creates a compile error on DUE code.
This needs to be updated and corrected to work correctly.
Metadata
Metadata
Assignees
Labels
Architecture: SAMApplies only to the SAM microcontrollers (Due)Applies only to the SAM microcontrollers (Due)Component: CoreRelated to the code for the standard Arduino APIRelated to the code for the standard Arduino APIType: Bug