Search found 1 match

by amin5659
Wed Aug 05, 2020 11:27 am
Forum: General discussion
Topic: running pwm on stm32 with arduino IDE
Replies: 1
Views: 387

running pwm on stm32 with arduino IDE

hi all. im new with programming stm32 with arduino. i want to run pwm function on PA2 pin with variable frequency and 1% duty cycle. i write the code bellow but the problem is i just can change the frequency in void setup. but when i try to change the timer2.setPeriod value in void loop{} pwm freque...

Go to advanced search