led_pwm_control
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
led_pwm_control [2017/01/23 18:22] – [Using PWM from the Command Line] walkeradmin | led_pwm_control [2017/01/23 18:24] – [Set the GPIO Pin Mode to PWM] walkeradmin | ||
---|---|---|---|
Line 49: | Line 49: | ||
* Setup the Pin in PWM Mode | * Setup the Pin in PWM Mode | ||
* Start the PWM | * Start the PWM | ||
- | \\ | + | |
- | \\ | + | |
---- | ---- | ||
Line 61: | Line 60: | ||
This sets the mode to Output | This sets the mode to Output | ||
\\ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
==== Set the GPIO Pin Mode to PWM === | ==== Set the GPIO Pin Mode to PWM === | ||
\\ | \\ | ||
Line 67: | Line 69: | ||
This sets the GPIO Pin mode to PWM. | This sets the GPIO Pin mode to PWM. | ||
\\ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
==== Set the PWM Frequency ==== | ==== Set the PWM Frequency ==== | ||
\\ | \\ | ||
Line 76: | Line 81: | ||
\\ | \\ | ||
\\ | \\ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | pi@PiNTP:~ $ gpio -g pwm 12 50 | ||
- |
led_pwm_control.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1