Published ModMyPi Jam HAT
This commit is contained in:
parent
35c701ae1d
commit
f1eb249813
Binary file not shown.
Before Width: | Height: | Size: 84 KiB |
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
|
@ -191,3 +191,4 @@ overlays:
|
||||||
- whitebox-tentacle-t3
|
- whitebox-tentacle-t3
|
||||||
- rpi-spark
|
- rpi-spark
|
||||||
- juiceboxzero
|
- juiceboxzero
|
||||||
|
- modmypi-jamhat
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
https://github.com/modmypi/Jam-HAT<!--
|
||||||
|
---
|
||||||
|
name: JamHat
|
||||||
|
class: board
|
||||||
|
type: multi
|
||||||
|
formfactor: HAT
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A Jam friendly board with 6 LEDs, 2 buttons and a buzzer.
|
||||||
|
url: https://www.modmypi.com/jam-hat
|
||||||
|
github: https://github.com/modmypi/Jam-HAT
|
||||||
|
buy: http://www.modmypi.com/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
|
||||||
|
|
||||||
|
An LED, button and buzzer hat ideal for Raspberry Jams, Jam Makers and people learning the basics of GPIO.
|
||||||
|
|
||||||
|
The Hat has 6 LEDs, 2 buttons and a tonal buzzer allowing for lots of hardware experimentation using the GPIO Zero library for ease of use.
|
||||||
|
```
|
||||||
|
from gpiozero import JamHat
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
jh = JamHat()
|
||||||
|
|
||||||
|
# Turn the hat on, wait and turn it off.
|
||||||
|
jh.on()
|
||||||
|
sleep(1)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Play tones through the buzzer.
|
||||||
|
jh.buzzer.play('C4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('D4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('E4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Use the buttons to turn on lights.
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
Full getting started guides are available on the [ModMyPi website](https://www.modmypi.com/blog/getting-started-with-the-jamhat)
|
|
@ -191,3 +191,4 @@ overlays:
|
||||||
- whitebox-tentacle-t3
|
- whitebox-tentacle-t3
|
||||||
- rpi-spark
|
- rpi-spark
|
||||||
- juiceboxzero
|
- juiceboxzero
|
||||||
|
- modmypi-jamhat
|
||||||
|
|
|
@ -191,3 +191,4 @@ overlays:
|
||||||
- whitebox-tentacle-t3
|
- whitebox-tentacle-t3
|
||||||
- rpi-spark
|
- rpi-spark
|
||||||
- juiceboxzero
|
- juiceboxzero
|
||||||
|
- modmypi-jamhat
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
https://github.com/modmypi/Jam-HAT<!--
|
||||||
|
---
|
||||||
|
name: JamHat
|
||||||
|
class: board
|
||||||
|
type: multi
|
||||||
|
formfactor: HAT
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A Jam friendly board with 6 LEDs, 2 buttons and a buzzer.
|
||||||
|
url: https://www.modmypi.com/jam-hat
|
||||||
|
github: https://github.com/modmypi/Jam-HAT
|
||||||
|
buy: http://www.modmypi.com/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
|
||||||
|
|
||||||
|
An LED, button and buzzer hat ideal for Raspberry Jams, Jam Makers and people learning the basics of GPIO.
|
||||||
|
|
||||||
|
The Hat has 6 LEDs, 2 buttons and a tonal buzzer allowing for lots of hardware experimentation using the GPIO Zero library for ease of use.
|
||||||
|
```
|
||||||
|
from gpiozero import JamHat
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
jh = JamHat()
|
||||||
|
|
||||||
|
# Turn the hat on, wait and turn it off.
|
||||||
|
jh.on()
|
||||||
|
sleep(1)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Play tones through the buzzer.
|
||||||
|
jh.buzzer.play('C4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('D4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('E4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Use the buttons to turn on lights.
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
Full getting started guides are available on the [ModMyPi website](https://www.modmypi.com/blog/getting-started-with-the-jamhat)
|
|
@ -191,3 +191,4 @@ overlays:
|
||||||
- whitebox-tentacle-t3
|
- whitebox-tentacle-t3
|
||||||
- rpi-spark
|
- rpi-spark
|
||||||
- juiceboxzero
|
- juiceboxzero
|
||||||
|
- modmypi-jamhat
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
https://github.com/modmypi/Jam-HAT<!--
|
||||||
|
---
|
||||||
|
name: JamHat
|
||||||
|
class: board
|
||||||
|
type: multi
|
||||||
|
formfactor: HAT
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A Jam friendly board with 6 LEDs, 2 buttons and a buzzer.
|
||||||
|
url: https://www.modmypi.com/jam-hat
|
||||||
|
github: https://github.com/modmypi/Jam-HAT
|
||||||
|
buy: http://www.modmypi.com/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
|
||||||
|
|
||||||
|
An LED, button and buzzer hat ideal for Raspberry Jams, Jam Makers and people learning the basics of GPIO.
|
||||||
|
|
||||||
|
The Hat has 6 LEDs, 2 buttons and a tonal buzzer allowing for lots of hardware experimentation using the GPIO Zero library for ease of use.
|
||||||
|
```
|
||||||
|
from gpiozero import JamHat
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
jh = JamHat()
|
||||||
|
|
||||||
|
# Turn the hat on, wait and turn it off.
|
||||||
|
jh.on()
|
||||||
|
sleep(1)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Play tones through the buzzer.
|
||||||
|
jh.buzzer.play('C4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('D4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('E4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Use the buttons to turn on lights.
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
Full getting started guides are available on the [ModMyPi website](https://www.modmypi.com/blog/getting-started-with-the-jamhat)
|
|
@ -191,3 +191,4 @@ overlays:
|
||||||
- whitebox-tentacle-t3
|
- whitebox-tentacle-t3
|
||||||
- rpi-spark
|
- rpi-spark
|
||||||
- juiceboxzero
|
- juiceboxzero
|
||||||
|
- modmypi-jamhat
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
https://github.com/modmypi/Jam-HAT<!--
|
||||||
|
---
|
||||||
|
name: JamHat
|
||||||
|
class: board
|
||||||
|
type: multi
|
||||||
|
formfactor: HAT
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A Jam friendly board with 6 LEDs, 2 buttons and a buzzer.
|
||||||
|
url: https://www.modmypi.com/jam-hat
|
||||||
|
github: https://github.com/modmypi/Jam-HAT
|
||||||
|
buy: http://www.modmypi.com/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
|
||||||
|
|
||||||
|
An LED, button and buzzer hat ideal for Raspberry Jams, Jam Makers and people learning the basics of GPIO.
|
||||||
|
|
||||||
|
The Hat has 6 LEDs, 2 buttons and a tonal buzzer allowing for lots of hardware experimentation using the GPIO Zero library for ease of use.
|
||||||
|
```
|
||||||
|
from gpiozero import JamHat
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
jh = JamHat()
|
||||||
|
|
||||||
|
# Turn the hat on, wait and turn it off.
|
||||||
|
jh.on()
|
||||||
|
sleep(1)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Play tones through the buzzer.
|
||||||
|
jh.buzzer.play('C4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('D4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('E4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Use the buttons to turn on lights.
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
Full getting started guides are available on the [ModMyPi website](https://www.modmypi.com/blog/getting-started-with-the-jamhat)
|
|
@ -191,3 +191,4 @@ overlays:
|
||||||
- whitebox-tentacle-t3
|
- whitebox-tentacle-t3
|
||||||
- rpi-spark
|
- rpi-spark
|
||||||
- juiceboxzero
|
- juiceboxzero
|
||||||
|
- modmypi-jamhat
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
https://github.com/modmypi/Jam-HAT<!--
|
||||||
|
---
|
||||||
|
name: JamHat
|
||||||
|
class: board
|
||||||
|
type: multi
|
||||||
|
formfactor: HAT
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A Jam friendly board with 6 LEDs, 2 buttons and a buzzer.
|
||||||
|
url: https://www.modmypi.com/jam-hat
|
||||||
|
github: https://github.com/modmypi/Jam-HAT
|
||||||
|
buy: http://www.modmypi.com/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
|
||||||
|
|
||||||
|
An LED, button and buzzer hat ideal for Raspberry Jams, Jam Makers and people learning the basics of GPIO.
|
||||||
|
|
||||||
|
The Hat has 6 LEDs, 2 buttons and a tonal buzzer allowing for lots of hardware experimentation using the GPIO Zero library for ease of use.
|
||||||
|
```
|
||||||
|
from gpiozero import JamHat
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
jh = JamHat()
|
||||||
|
|
||||||
|
# Turn the hat on, wait and turn it off.
|
||||||
|
jh.on()
|
||||||
|
sleep(1)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Play tones through the buzzer.
|
||||||
|
jh.buzzer.play('C4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('D4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.buzzer.play('E4')
|
||||||
|
sleep(0.5)
|
||||||
|
jh.off()
|
||||||
|
|
||||||
|
# Use the buttons to turn on lights.
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
Full getting started guides are available on the [ModMyPi website](https://www.modmypi.com/blog/getting-started-with-the-jamhat)
|
Loading…
Reference in New Issue