File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
examples/Peripherals/HardwareTimer/PWM_FullConfiguration Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 19
19
20
20
// 'pin' PWM will be managed automatically by hardware whereas 'pin2' PWM will be managed by software through interrupt callback
21
21
#if defined(LED_BUILTIN)
22
- #define pin LED_BUILTIN
22
+ #define pin LED_BUILTIN
23
23
24
- #if LED_BUILTIN == D3
25
- # error LED_BUILTIN == D3
26
- #else
27
- #define pin2 D3
28
- #endif
24
+ #if LED_BUILTIN == D3
25
+ # define pin2 D2
26
+ #else
27
+ #define pin2 D3
28
+ #endif
29
29
30
30
#else
31
- #define pin D2
32
- #define pin2 D3
31
+ #define pin D2
32
+ #define pin2 D3
33
33
#endif
34
34
35
35
void Update_IT_callback (void )
@@ -72,4 +72,4 @@ void setup()
72
72
void loop ()
73
73
{
74
74
/* Nothing to do all is done by hardware. Even no interrupt required. */
75
- }
75
+ }
You can’t perform that action at this time.
0 commit comments