create modmypi-jamhat in spanish
This commit is contained in:
parent
eb48624f24
commit
1d3f7b3691
98
src/es/overlay/modmypi-jamhat.md
Normal file
98
src/es/overlay/modmypi-jamhat.md
Normal file
@ -0,0 +1,98 @@
|
||||
<!--
|
||||
---
|
||||
name: JamHat
|
||||
class: board
|
||||
type: multi
|
||||
formfactor: HAT
|
||||
manufacturer: ModMyPi
|
||||
description: Una placa Jam amigable con 6 LEDs, 2 botones y un zumbador.
|
||||
url: https://thepihut.com/products/jam-hat
|
||||
github: https://github.com/modmypi/Jam-HAT
|
||||
buy: https://thepihut.com/products/jam-hat
|
||||
image: 'modmypi-jamhat.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
'4':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'29':
|
||||
name: LED1
|
||||
direction: output
|
||||
active: high
|
||||
'31':
|
||||
name: LED2
|
||||
direction: output
|
||||
active: high
|
||||
'32':
|
||||
name: LED3
|
||||
direction: output
|
||||
active: high
|
||||
'33':
|
||||
name: LED4
|
||||
direction: output
|
||||
active: high
|
||||
'36':
|
||||
name: LED5
|
||||
direction: output
|
||||
active: high
|
||||
'11':
|
||||
name: LED6
|
||||
direction: output
|
||||
active: high
|
||||
'12':
|
||||
name: Button 2/Right Button
|
||||
direction: input
|
||||
active: high
|
||||
'35':
|
||||
name: Button 1/Left Button
|
||||
direction: input
|
||||
active: high
|
||||
'38':
|
||||
name: Buzzer
|
||||
direction: output
|
||||
active: high
|
||||
-->
|
||||
# Jam Hat
|
||||
|
||||
Una placa complementaria con LED, botón y zumbador para Raspberry Jams, Jam Makers y personas que están aprendiendo lo básico de GPIO.
|
||||
|
||||
La placa tiene 6 LEDs, 2 botone y un zumbador tonal que permiten un montón de experimentación hardware utilizando la biblioteca GPIO Zero library para una sencillez de uso.
|
||||
```
|
||||
from gpiozero import JamHat
|
||||
from time import sleep
|
||||
|
||||
jh = JamHat()
|
||||
|
||||
# Enciende la plaza, espera y apágala.
|
||||
jh.on()
|
||||
sleep(1)
|
||||
jh.off()
|
||||
|
||||
# Reproduce tones mediante el zumbador.
|
||||
jh.buzzer.play('C4')
|
||||
sleep(0.5)
|
||||
jh.buzzer.play('D4')
|
||||
sleep(0.5)
|
||||
jh.buzzer.play('E4')
|
||||
sleep(0.5)
|
||||
jh.off()
|
||||
|
||||
# Utiliza los botones para encender las luces.
|
||||
jh.button_1.when_pressed = jh.lights_1.on
|
||||
jh.button_1.when_released = jh.lights_1.off
|
||||
jh.button_2.when_pressed = jh.lights_2.on
|
||||
jh.button_2.when_released = jh.lights_2.off
|
||||
```
|
||||
|
||||
Las guías completas de inicio están disponibles en [El sitio web de ModMyPi](https://www.modmypi.com/blog/getting-started-with-the-jamhat)
|
Loading…
Reference in New Issue
Block a user