Interfacing the PYBStick with Raspberry-Pi Hats (pHat) made easy
The HAT-FACE is the very first product of the PYBStick eco-systeme. It allows you to plug the PYBStick on a Raspberry-Pi HAT (so a "Hat interFace") and to drive the HAT from MicroPython/Arduino code running on the PYBStick.
All the basic function of the Raspberry-Pi's GPIO is mapped down to the PYBStick. So the I2C, SPI, UART buses are mapped and will help to control the HAT plugged onto the interface board.
The PinOut and schematic of the HAT-FACE will greatly helps to write your own code against the HAT you want to control.
This interface board controls the 26 first pins of the Rapsberry-Pi GPIOs (the most common) as few of the HATs does care about the extra pins (from 26 to 40). Want's to control a LCD display (SPI bus) or sensor board (I2C Bus), maybe an Adafruit Motor Shield (I2C bus)... no problem... this board is made for you.
Some MicroPython drivers for HATs are also available on the pyboard-driver github under the PYBStick section.
For each order you will receive:
- 1x Adapter board for PYBStick
- 2x section of 13 male pin header (for PYBStick)
- 1x section of 2x13 male pin header (for HAT)
PYBStick and Raspberry-Pi's HAT not included.
Assembling this interface board is quite easy. Just follow the instructions in the tutorial mentionned below.