2015-04-11 06:32:08 +08:00
|
|
|
<!--
|
|
|
|
---
|
|
|
|
name: Explorer HAT
|
|
|
|
manufacturer: Pimoroni
|
|
|
|
url: https://github.com/pimoroni/explorer-hat
|
|
|
|
github: https://github.com/pimoroni/explorer-hat
|
|
|
|
buy: http://shop.pimoroni.com/products/explorer-hat
|
|
|
|
description: An all-in-one light, input, touch and output add-on board.
|
2015-10-28 21:37:29 +08:00
|
|
|
install:
|
|
|
|
'devices':
|
|
|
|
- 'i2c'
|
|
|
|
'apt':
|
|
|
|
- 'python-smbus'
|
|
|
|
- 'python3-smbus'
|
|
|
|
- 'python-dev'
|
|
|
|
- 'python3-dev'
|
|
|
|
'python':
|
|
|
|
- 'explorerhat'
|
|
|
|
'python3':
|
|
|
|
- 'explorerhat'
|
|
|
|
'examples': 'examples/'
|
2015-04-11 06:32:08 +08:00
|
|
|
pincount: 40
|
2015-11-11 07:53:42 +08:00
|
|
|
i2c:
|
|
|
|
'0x28':
|
|
|
|
name: Cap Touch
|
|
|
|
device: cap1208
|
2015-04-11 06:32:08 +08:00
|
|
|
pin:
|
|
|
|
'7':
|
|
|
|
name: LED 1
|
|
|
|
mode: output
|
|
|
|
active: high
|
|
|
|
'11':
|
|
|
|
name: LED 2
|
|
|
|
mode: output
|
|
|
|
active: high
|
|
|
|
'13':
|
|
|
|
name: LED 3
|
|
|
|
mode: output
|
|
|
|
active: high
|
|
|
|
'15':
|
|
|
|
name: Input 2
|
|
|
|
mode: input
|
|
|
|
active: high
|
|
|
|
'16':
|
|
|
|
name: Input 1
|
|
|
|
mode: input
|
|
|
|
active: high
|
|
|
|
'18':
|
|
|
|
name: Input 3
|
|
|
|
mode: input
|
|
|
|
active: high
|
|
|
|
'22':
|
|
|
|
name: Input 4
|
|
|
|
mode: input
|
|
|
|
active: high
|
|
|
|
'29':
|
|
|
|
name: LED 4
|
|
|
|
mode: output
|
|
|
|
active: high
|
|
|
|
'31':
|
|
|
|
name: Output 1
|
|
|
|
mode: output
|
|
|
|
active: high
|
|
|
|
'32':
|
|
|
|
name: Output 2
|
|
|
|
mode: output
|
|
|
|
active: high
|
|
|
|
'33':
|
|
|
|
name: Output 3
|
|
|
|
mode: output
|
|
|
|
active: high
|
|
|
|
'36':
|
|
|
|
name: Output 4
|
|
|
|
mode: output
|
|
|
|
active: high
|
|
|
|
-->
|
2015-11-11 07:53:42 +08:00
|
|
|
#Explorer HAT
|
2015-04-11 06:32:08 +08:00
|
|
|
|
2015-11-16 23:03:08 +08:00
|
|
|
5V inputs and outputs, touch pads and LEDs make up the Explorer HAT; a jack of all trades prototyping side-kick for your Raspberry Pi.
|
2015-04-11 06:32:08 +08:00
|
|
|
|
2015-11-10 07:44:51 +08:00
|
|
|
To get the HAT set up and ready to go you can use the one-line product installer:
|
|
|
|
|
2015-04-11 06:32:08 +08:00
|
|
|
```bash
|
2015-11-13 08:37:42 +08:00
|
|
|
curl -sS get.pimoroni.com/explorerhat | bash
|
2015-04-11 06:32:08 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
Then import it into your Python script and start tinkering:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
import explorerhat
|
|
|
|
explorerhat.light.on()
|
2015-10-28 21:37:29 +08:00
|
|
|
```
|