Control LED brightness

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi, i just got my XMC1300 few days ago. But i have no idea how to use DAVE.
I would like to control a LED brightness as below attached photo by using XMC1300 instead of arduino.
However, i totally no cue how to start even though i have ran though all the example given.
Can any expert guide me on writing the code?
17.attach

Thank you very much.
0 Likes
3 Replies
MaxECU
Employee
Employee
Welcome!
Hi, might be this could help you: https://code.google.com/p/arduino-to-xmc/
0 Likes
Not applicable
Hi atzkae,

You can control the brightness of the LED by generating a PWM signal and connect to the LED.
By controlling the duty cycle of the PWM, you can control the LED brightness.
0 Likes
Not applicable
Thanks, i'm now able to control the LED brightness through PWM.
0 Likes