pinout.vvzero.com/src/en/overlay/explorer-hat-pro.md

121 lines
2.1 KiB
Markdown
Raw Normal View History

<!--
---
2016-06-25 06:26:20 +08:00
name: Explorer HAT Pro
2016-01-31 19:03:17 +08:00
class: board
type: adc,io,motor
formfactor: HAT
image: 'explorer-hat-pro.png'
manufacturer: Pimoroni
description: An all-in-one light, input, motor, touch and output add-on board
url: https://github.com/pimoroni/explorer-hat
github: https://github.com/pimoroni/explorer-hat
buy: http://shop.pimoroni.com/products/explorer-hat
pincount: 40
eeprom: yes
pin:
2015-11-16 03:41:45 +08:00
'3':
mode: i2c
'5':
mode: i2c
'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
'35':
name: Motor 1 +
mode: output
active: high
'36':
name: Output 4
mode: output
active: high
'37':
name: Motor 2 -
mode: output
active: high
'38':
name: Motor 1 -
mode: output
active: high
'40':
name: Motor 2 +
mode: output
active: high
i2c:
'0x28':
name: Cap Touch
device: cap1208
'0x48':
name: Analog Input
device: ads1015
install:
'devices':
- 'i2c'
'apt':
- 'python-smbus'
- 'python3-smbus'
- 'python-dev'
- 'python3-dev'
'python':
- 'explorerhat'
'python3':
- 'explorerhat'
'examples': 'examples/'
-->
#Explorer HAT Pro
2015-11-16 23:02:02 +08:00
5V inputs and outputs, touch pads, LEDs, analog inputs and an H-Bridge motor driver make up the Explorer HAT Pro; a jack of all trades prototyping side-kick for your Raspberry Pi.
To get the HAT set up and ready to go you can use the one-line product installer:
```bash
2015-11-13 08:37:42 +08:00
curl -sS get.pimoroni.com/explorerhat | bash
```
Then import it into your Python script and start tinkering:
```bash
import explorerhat
explorerhat.light.on()
```