> For the complete documentation index, see [llms.txt](https://teleron.gitbook.io/dashboard/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://teleron.gitbook.io/dashboard/fundamentals/ornekler/pwm.md).

# PWM

Pulse Width Modulation

```
from machine import PWM
from machine import Pin
pwm= PWM(Pin(0)) #Pinout diagramına bakarak PWM özelliğine sahip pini bulduk.
pwm.freq(1)
pwm.duty(512)
"""
Duty cycle'ı 1024 yaparsak;
(%100) Bütün dalga yüksek
Duty cycle'ı 0 yaparsak;
(%0) Bütün dalga düşük
"""

```
