We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0ca4dd commit cb6cca6Copy full SHA for cb6cca6
variants/arduino_due_x/variant.h
@@ -66,6 +66,7 @@ extern "C"{
66
#define portOutputRegister(port) ( &(port->PIO_ODSR) )
67
#define portInputRegister(port) ( &(port->PIO_PDSR) )
68
//#define portModeRegister(P) ( )
69
+#define digitalPinHasPWM(P) ( g_APinDescription[P].ulPWMChannel != NOT_ON_PWM || g_APinDescription[P].ulTCChannel != NOT_ON_TIMER )
70
71
// Interrupts
72
#define digitalPinToInterrupt(p) ((p) < NUM_DIGITAL_PINS ? (p) : -1)
0 commit comments