User Tools

Site Tools


led_pwm_control

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
led_pwm_control [2017/01/23 18:22] – [Using PWM from the Command Line] walkeradminled_pwm_control [2017/01/23 19:01] – [LED States] walkeradmin
Line 38: Line 38:
 ---- ----
  
-\\  
 \\  \\ 
 For this example I am going to use GPIO12 (or Physical Pin32). For this example I am going to use GPIO12 (or Physical Pin32).
Line 59: Line 58:
 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 65: Line 67:
 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 75: Line 80:
 \\  \\ 
  
- +---- 
- +==== LED States ==== 
- +\\  
- +{{:led_001.jpg?125|}}{{:led_010.jpg?125|}}{{:led_050.jpg?125|}}{{:led_100.jpg?125|}}{{:led_250.jpg?125|}}{{:led_500.jpg?125|}}{{:led_999.jpg?125|}} 
-pi@PiNTP:~ $ gpio -g pwm 12 50 +\\  
 +\\  
 +--------PWM-001------------PWM-010------------PWM-050------------PWM-0100--------------PWM-250--------------PWM-500--------------PWM-999-------
led_pwm_control.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1