We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ce323 commit 3b523b1Copy full SHA for 3b523b1
examples/Peripherals/HardwareTimer/PWM_FullConfiguration/PWM_FullConfiguration.ino
@@ -19,17 +19,17 @@
19
20
// 'pin' PWM will be managed automatically by hardware whereas 'pin2' PWM will be managed by software through interrupt callback
21
#if defined(LED_BUILTIN)
22
-#define pin LED_BUILTIN
+ #define pin LED_BUILTIN
23
24
-#if LED_BUILTIN == D3
25
-#error LED_BUILTIN == D3
26
-#else
27
-#define pin2 D3
28
-#endif
+ #if LED_BUILTIN == D3
+ #define pin2 D2
+ #else
+ #define pin2 D3
+ #endif
29
30
#else
31
-#define pin D2
32
+ #define pin D2
33
#endif
34
35
void Update_IT_callback(void)
@@ -72,4 +72,4 @@ void setup()
72
void loop()
73
{
74
/* Nothing to do all is done by hardware. Even no interrupt required. */
75
-}
+}
0 commit comments