This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge-2l:applications:gpio:pwm [2026/02/03 21:45] gray update by using AI |
products:sbc:edge-2l:applications:gpio:pwm [2026/05/11 02:08] (current) nick ↷ Page moved from local:users:gray:products:sbc:edge-2l:applications:gpio:pwm to products:sbc:edge-2l:applications:gpio:pwm |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | This page explains how to use the hardware PWM (Pulse Width Modulation) and guides you through controlling it on the [[products: | + | This page explains how to use the hardware PWM (Pulse Width Modulation) and guides you through controlling it on the [[products: |
| <WRAP important > | <WRAP important > | ||
| To use the PWM functionality on the Edge-2L, you must attach the Edge-2L IO board. | To use the PWM functionality on the Edge-2L, you must attach the Edge-2L IO board. | ||
| </ | </ | ||
| - | ===== PWM Information | + | ===== PWM information |
| | | | | ||
| Line 16: | Line 16: | ||
| - | ===== Enable PWM via Device Tree Overlay===== | + | ===== Enable PWM ===== |
| To use the hardware PWM, you must first enable it by applying a [[products: | To use the hardware PWM, you must first enable it by applying a [[products: | ||
| - | Edit the file '/ | + | Edit the file ''/ |
| ```shell | ```shell | ||
| Line 33: | Line 33: | ||
| ``` | ``` | ||
| - | ===== Disable PWM to Use as GPIO ===== | + | ===== Disable PWM to use as GPIO ===== |
| If you wish to use the pin as a standard GPIO instead of PWM, remove the '' | If you wish to use the pin as a standard GPIO instead of PWM, remove the '' | ||
| - | ===== Control PWM via Sysfs===== | + | ===== Control PWM via sysfs===== |
| **Enable and Configure PWM: | **Enable and Configure PWM: | ||
| Line 65: | Line 65: | ||
| **Disable PWM:** | **Disable PWM:** | ||
| + | |||
| To stop the PWM signal: | To stop the PWM signal: | ||
| ```shell | ```shell | ||