Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
Once configured, there is no CPU load.
*/

/*
Note: Please verify that 'pin' used for PWM has HardwareTimer capability for your board
This is specially true for F1 serie (BluePill, ...)
*/

#if defined(LED_BUILTIN)
#define pin LED_BUILTIN
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

*/

/*
Note: Please verify that for your board,'pin' used for PWM has HardwareTimer capability
This is specially true for F1 serie (BluePill, ...)
*/

#define pin D2

uint32_t channelRising, channelFalling;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
Measured frequency is displayed on Serial Monitor.
*/

/*
Note: Please verify that 'pin' used for PWM has HardwareTimer capability for your board
This is specially true for F1 serie (BluePill, ...)
*/

#define pin D2

uint32_t channel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
Once configured, there is only CPU load for callbacks executions.
*/

/*
Note: Please verify that 'pin' used for PWM has HardwareTimer capability for your board
This is specially true for F1 serie (BluePill, ...)
*/

// 'pin' PWM will be mangaed automatically by hardware whereas 'pin2' PWM will be managed by software through interrupt callback
#if defined(LED_BUILTIN)
#define pin LED_BUILTIN
Expand Down