This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| logicpython:cubloc_api:pwm [2026/04/13 02:19] – [Parameters] mfranklin | logicpython:cubloc_api:pwm [2026/05/15 05:31] (current) – [Parameters] mfranklin | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| from cubloc import Pwm | from cubloc import Pwm | ||
| - | Pwm(channel: int, duty: int, period: int) | + | PWM(pin: int, duty: int, period: int) |
| </ | </ | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| - | * **channel**: PWM '' | + | * **pin**: GPIO pin number. |
| * **duty**: '' | * **duty**: '' | ||
| * **period**: PWM '' | * **period**: PWM '' | ||
| Line 25: | Line 25: | ||
| <code python> | <code python> | ||
| - | from cubloc import | + | from cubloc import |
| # Example usage | # Example usage | ||
| - | Pwm(0, 1, 1) | + | PWM(0, 1, 1) |
| </ | </ | ||
| ===== Related APIs ===== | ===== Related APIs ===== | ||
| - | | + | * [[logicpython: |
| - | | + | |