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:24] – [Set the PWM Frequency] walkeradminled_pwm_control [2017/02/01 10:33] walkeradmin
Line 2: Line 2:
 <color #db5f0b>Jan 2017</color> <color #db5f0b>Jan 2017</color>
 \\  \\ 
 +{{ :led_blink_320.gif?300 |}}
 ---- ----
 Turning on LEDs using the GPIO on the Raspberry Pi is pretty simple. You just turn on or off the relevant GPIO pin, and your LED (connected via a 330r resistor) will come on and go off. Turning on LEDs using the GPIO on the Raspberry Pi is pretty simple. You just turn on or off the relevant GPIO pin, and your LED (connected via a 330r resistor) will come on and go off.
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 49: Line 48:
   * Setup the Pin in PWM Mode   * Setup the Pin in PWM Mode
   * Start the PWM   * Start the PWM
- 
  
 ---- ----
Line 83: Line 81:
  
 ---- ----
 +==== 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|}} 
 +\\  
 +\\  
 +---------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