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

Conversation

ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented Feb 20, 2020

HardwareTimer examples: add a note to check pin PWM capability

Fixes #20

@fpistm fpistm merged commit 683463d into stm32duino:master Feb 20, 2020
@karstengit
Copy link

#20 (comment)

Seriously?
In loop there is no reference to MyTim and this is normal as it is a local one to Setup. Same for channel_a, channel_b weary I could not spent my time to correct and explain how to code. This is purely C++ coding.

Sorry for the inconvenience.

From my point of view Arduino is an platform for beginners to get in touch with programming MCU's.
There are some good examples in the HardwareTimer library, but not showing basic things to work with PWM.
So you invested much time in a very good idea to make this HardwareTimer library.
Thank you very much for doing it!
Users can master complicate issues with it.
But the beginners fail with simple things.
That's all.

It could if you read the user manual as I already said.

When some beginners have to read all the manuals first before they can do something, they will abort.
It is much more fun to start with an example that works and then go deeper and deeper.

It would be fine if the old programming modes would be still available and CubeProgrammer will be additional.
It can't be shipped with stm32duino - but the other small tools where no problem.

No, as this not support all series and are not actively maintained. Again as said, you can use bootloader to flash over DFU or customize you configuration as other do. Or buy a Nucleo F103 RB which allow you to upload thanks a simple copy/past on the mass storage.

This are good tips that i did not find up to now.
Thanks for it!

I lock this topic as issue should not be used for this kind of discussion --> forum.

Sorry again - I don't want to annoy you.
I just want to explain the point of view of a beginner and that STM32Duino seems more to address experts.
That was not clear.

@fpistm
Copy link
Member

fpistm commented Feb 22, 2020

I just want to explain the point of view of a beginner and that STM32Duino seems more to address experts.

HardwareTimer is not oriented for beginner.
Beginner follows the Arduino API.
So to make a PWM use AnalogWrite with a pin with PWM capabilities that's all.

And if you want go further, read the wiki and join the forum to get help from STM32duino community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HardwareTimer library is not working
3 participants