DuePi
Raspberry Pi HAT Adapter
- Overview
- Commands
- On-Module Code
DuePi is the perfect adapter for all RPI (Raspberry Pi) models, including RPI Zero. The outer mounting holes are standard mounting holes for RPI. The bottom half of the board is a 5mm-pitched holes for mounting DUELink modules. This bottom side is breakable to make the board smaller to make it the right size for RPI Zero.
DuePi with Raspberry Pi Zero

The board includes several onboard peripherals, including buttons, buzzer, and a graphical display. The display is controlled using the DUELink native Graphics support. Simple commands are used to control the display instead of using Linux.
The onboard 800mA regulator is used to feed power to the Downlink connector, keeping any loads away from the RPI's 3.3V source.
The USB connector is conveniently there to help with loading/updating the DUELink processor's firmware/drivers. It should not be used when DuePi is used with a Raspberry Pi.
With the USB connector and the onboard power regulator, this adapter can be used as a Microcomputer with full function
Key features • Attaches to Raspberry Pi or Pi Zero Header | Resources 📄 Schematics PID: 0x0A0004 |
Modules ship without cables to reduce waste. Some specialty boards include a USB cable; for the rest, see Cables to add cables to your order.
| Function | Description |
|---|---|
GetW() | Get display width: 128. |
GetH() | Get display height: 64. |
IsColor() | Returns 0. |
BtnA() | Returns 1 if button A is pressed. |
BtnB() | Returns 1 if button B is pressed. |
Buzzer(f,d) | Plays buzzer to f frequency(50 to 15K) for d duration in milliseconds. |
DVer() | This driver version. |
Samples​
Example code for using this module's commands in popular languages.
New here? See Get Started to connect a module and send your first command.
- Python
- JavaScript
- .NET
loading...
loading...
loading...
Peek under the hood
The script below is this module's driver — it teaches the hardware how to respond to the commands listed above. It ships pre-loaded from the factory; most users never need to open it.
loading...
Code that runs directly on this module's MCU. See On-Module Code for an overview.
- Script
- Arduino IDE
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the module's driver to be loaded first, see the Commands Tab.
loading...
See Arduino IDE page for more info.
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink DuePi | GDL-ADDUEPI-B | $14.95 |