Skip to content

HardwareTimer examples: add a note to check pin PWM capability #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

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