Latest Python on Pi | Luciano's tech see the web in desktop mode to better experience | 477 OS | 312 OS Pi 4B | 108 OS Pi5
Led de colores rojo y verde con cátodo común. En la programación Raspberry Pi introduciremos la librería gpiozero y su función LED.
Forward voltage: 2.0 - 2.5 V
Power Dissipation: 80 mW
Forward Current ( DC ): 30 mA
Peak Forward Current: 150 mA
Operating Temperature Range: -25 ~ +85°C
Storage Temperature Range: -30 ~ +100°C
Lead Soldering Temperature ( 3 mm from the base of the epoxy bulb ): 260°C
SERIES RESISTORS:
Depending on the input voltage, series resistors are required.
Series resistor (3.3 V) [Red]: 120 Ω
Series resistor (3,3 V) [Green]: 120 Ω
Series resistor (5 V) [Red]: 220 Ω
Series resistor (5 V) [Green]: 220 Ω
ON/OFF.
PWM
Creamos el siguiente programa desde la Terminal o con tu IDE favorito:
Presionamos Ctrl + x para salir, luego y para confirmar los cambios, finalmente Enter. Para guardarlos.
Para correr el programa abrimos la Terminal e ingresamos:
GPIO Zero.
GPIO Zero.
ON/OFF.
GPIO Zero.
PWM.
ON/OFF.
PWM.
Abrimos la Terminal o el CMD e ingresamos:
Guardamos los cambios con Ctrl+o, Confirmamos con Enter, Cerramos el archivo con Ctrl+x.
En Windows en lugar de nano tenemos notepad, guardar los cambios con Ctrl+g, Salir con Ctrl+w:
Abrimos la Terminal o el CMD e ingresamos:
Guardamos los cambios con Ctrl+o, Confirmamos con Enter, Cerramos el archivo con Ctrl+x.
En Windows en lugar de nano tenemos notepad, guardar los cambios con Ctrl+g, Salir con Ctrl+w: