# Adafruit PyGamer

> Handheld gaming console and dev board powered by ATSAMD51J19 (120MHz Cortex-M4F) with a 1.8" TFT display, 5 NeoPixels, accelerometer, and Feather-compatible headers. Runs MakeCode Arcade, CircuitPython, or Arduino.

## Quick Facts

- **Brand:** Adafruit
- **Board Type:** handheld-gaming
- **Price:** ~$44.95
- **Product Readiness:** consumer
- **CPU:** ARM Cortex-M4F @ 120MHz (ATSAMD51J19)
- **CPU Architecture:** ARM Cortex-M4F
- **CPU Cores:** 1
- **RAM:** 192KB
- **Flash:** 512KB + 8MB QSPI
- **Power:** 5V via Micro-USB or LiPoly battery
- **Operating Voltage:** 3.3V
- **Dimensions:** 101.6 x 60.0 x 19.5mm
- **Weight:** 37.5g
- **Antenna:** none
- **SD Card:** microSD

## Connectivity

- **Wifi:** false
- **Bluetooth:** false
- **Zigbee:** false
- **Ethernet:** false

## Open Source

- **Firmware:** Yes
- **Schematics:** Yes
- **PCB Layout:** Yes

## Certifications

RoHS

## Compatible Firmware

circuitpython, makecode, arduino

## Use Cases

- retro-gaming
- iot
- wearable

## Components

- **ATSAMD51J19** (mcu): ARM Cortex-M4F @ 120MHz, 512KB Flash, 192KB RAM, 3.3V logic. — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fww1.microchip.com%2Fdownloads%2Fen%2FDeviceDoc%2FSAM_D5xE5x_Family_Data_Sheet_DS60001507F.pdf&ref=openhardware.directory&product=adafruit-pygamer&source=md-export)
- **LIS3DH** (mcu): Triple-axis MEMS accelerometer with tap and free-fall detection. — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.st.com%2Fresource%2Fen%2Fdatasheet%2Flis3dh.pdf&ref=openhardware.directory&product=adafruit-pygamer&source=md-export)

## Protocols

- **I2C**: SDA: D26, SCL: D27
- **SPI**: MOSI: D11, MISO: D12, SCK: D13
- **UART**: TX: D1, RX: D0
- **PWM**: 
- **ADC**: 

## GPIO Map

| Pin | Name | Type | Functions |
|-----|------|------|-----------|
| A0 | A0 — ADC/DAC | ADC | analog-input, dac, digital-input, digital-output, pwm |
| A1 | A1 — ADC | ADC | analog-input, digital-input, digital-output, pwm |
| A2 | A2 — ADC | ADC | analog-input, digital-input, digital-output, pwm |
| A3 | A3 — ADC | ADC | analog-input, digital-input, digital-output, pwm |
| A4 | A4 — ADC | ADC | analog-input, digital-input, digital-output, pwm |
| A5 | A5 — ADC | ADC | analog-input, digital-input, digital-output, pwm |
| D5 | D5 — Digital | — | digital-input, digital-output, pwm |
| D6 | D6 — Digital | — | digital-input, digital-output, pwm |
| D9 | D9 — Digital/PWM | — | digital-input, digital-output, pwm |
| D10 | D10 — Digital/PWM | — | digital-input, digital-output, pwm |
| D11 | D11 — MOSI/PWM | SPI | digital-input, digital-output, pwm, spi-mosi |
| D12 | D12 — MISO | SPI | digital-input, digital-output, spi-miso |
| D13 | D13 — SCK/LED | SPI | digital-input, digital-output, spi-sck |
| SDA | SDA — I2C Data (D26) | I2C | digital-input, digital-output, i2c-sda |
| SCL | SCL — I2C Clock (D27) | I2C | digital-input, digital-output, i2c-scl |

## Available Software

- **[circuitpython]()** (open-source)
- **[makecode]()** (open-source)
- **[arduino]()** (open-source)

## Description

## Overview

The Adafruit PyGamer is a handheld gaming and development platform that fits in your pocket while delivering serious maker capabilities. Built around the ATSAMD51J19 ARM Cortex-M4F microcontroller running at 120MHz, it combines a 1.8-inch 160×128 color TFT display with a dual-potentiometer analog thumbstick, four game buttons, and 5 NeoPixel LEDs into a compact open-source package.

Unlike dedicated gaming handhelds, the PyGamer is also a fully capable development board. Its Feather-compatible header sockets accept any FeatherWing accessory, and three STEMMA connectors (two 3-pin ADC/PWM and one 4-pin I2C) allow easy sensor expansion. The board ships with 8MB of QSPI Flash for storing assets, a micro SD card slot for additional storage, a mono Class-D speaker driver, and a LiPoly battery port with integrated charging.

The PyGamer supports three programming environments out of the box: Microsoft MakeCode Arcade for block and JavaScript-based game development, CircuitPython for rapid Python prototyping, and the Arduino IDE for full C/C++ control. A triple-axis accelerometer and front-facing light sensor open up motion- and light-reactive game mechanics without any add-ons.

All hardware design files are open source. The board measures 101.6×60.0×19.5mm and weighs 37.5g, making it comfortable to hold for extended play sessions. Note that button caps, acrylic case, speaker, and battery are sold separately.

## Where to Buy

- [Adafruit](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F4242&ref=openhardware.directory&product=adafruit-pygamer&source=md-export) — 44.95

## Resources

- [product page](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F4242&ref=openhardware.directory&product=adafruit-pygamer&source=md-export)
- [product](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F4242&ref=openhardware.directory&product=adafruit-pygamer&source=md-export)
- [documentation](https://openhardware.directory/r?to=https%3A%2F%2Flearn.adafruit.com%2Fadafruit-pygamer&ref=openhardware.directory&product=adafruit-pygamer&source=md-export)
- [github](https://openhardware.directory/r?to=https%3A%2F%2Fgithub.com%2Fadafruit%2FAdafruit_Arcada&ref=openhardware.directory&product=adafruit-pygamer&source=md-export)
- [circuitpython](https://openhardware.directory/r?to=https%3A%2F%2Fcircuitpython.org%2Fboard%2Fpygamer%2F&ref=openhardware.directory&product=adafruit-pygamer&source=md-export)

## Tags

`gaming`, `handheld`, `atsamd51`, `circuitpython`, `makecode`, `feather`, `neopixel`, `stemma`

## Images

![Adafruit PyGamer](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-pygamer/6356951688f4.jpg)
![Adafruit PyGamer](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-pygamer/77187e36363e.jpg)
![Adafruit PyGamer](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-pygamer/bc691f73f80f.jpg)

---
[View full device page](https://openhardware.directory/devices/adafruit-pygamer)