Repository navigation
The PWM on pin D2 does not work (LGT8F328P) #113
olfresh-cf
started this conversation in
General
Replies: 1 comment
I never try to use PWM, but I have an idea. PF2 arduino pin name is D34 so try this: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
The PWM on pin D2 does not work. Switches only to 0 or 1 when using analogWrite(D2, value). If you use the original kernel https://github.com/LGTMCU/Larduino_HSP, then the PWM on pin D2 works with the pwmWrite(D2, value) command. It looks like the difference is in a piece of code in the kernel file wiring_digital.c:
[https://github.com/LGTMCU/Larduino_HSP]:
[https://github.com/dbuezas/lgt8fx/]:
All reactions