# Adafruit PyBadge LC

> Low-cost credit card-sized gaming/badge board with ATSAMD51J19 at 120MHz, 1.8\" 160x128 TFT, 8 game buttons, 1 NeoPixel, light sensor, buzzer, 2MB SPI flash, and MicroSD. Supports MakeCode Arcade, CircuitPython, and Arduino.

## Quick Facts

- **Brand:** Adafruit
- **Board Type:** dev-board
- **Price:** ~$29.95
- **Product Readiness:** consumer
- **CPU:** Microchip ATSAMD51J19 ARM Cortex M4F
- **CPU Architecture:** ARM Cortex-M4F
- **CPU Cores:** 1
- **RAM:** 192 KB
- **Flash:** 512 KB
- **Power:** 5V via Micro USB or LiPo battery via JST connector
- **Operating Voltage:** 3.3V
- **Dimensions:** 85.7mm × 54.6mm × 10mm
- **Weight:** 25.7g
- **SD Card:** microSD
- **Display:** 1.8" TFT LCD 160×128

## Open Source

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

## Compatible Firmware

circuitpython, arduino

## Use Cases

- gaming
- education
- badge
- maker-projects
- wearable

## Components

- **ATSAMD51J19** (mcu): 32-bit ARM Cortex M4F at 120 MHz with 512 KB flash, 192 KB SRAM, AES-256, TRNG, native USB. — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fww1.microchip.com%2Fdownloads%2Fen%2FDeviceDoc%2FSAM_D5xE5x_Family_Data_Sheet_DS60001507G.pdf&ref=openhardware.directory&product=adafruit-pybadge-lc&source=md-export)
- **ST7735R** (display-driver): 160×128 color TFT LCD controller for game graphics and badge content. — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.crystalfontz.com%2Fcontrollers%2FSitronix%2FST7735R%2F&ref=openhardware.directory&product=adafruit-pybadge-lc&source=md-export)

## Protocols

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

## GPIO Map

| Pin | Name | Type | Functions |
|-----|------|------|-----------|
| D0 | RX — UART | UART | digital-input, digital-output |
| D1 | TX — UART | UART | digital-input, digital-output |
| D5 | D5 — GPIO/PWM | — | digital-input, digital-output, pwm |
| D6 | D6 — GPIO/PWM | — | digital-input, digital-output, pwm |
| D9 | D9 — GPIO/PWM | — | digital-input, digital-output, pwm |
| D10 | D10 — GPIO/PWM | — | digital-input, digital-output, pwm |
| D11 | D11 — MOSI | SPI | digital-input, digital-output |
| D12 | D12 — MISO | SPI | digital-input, digital-output |
| D13 | D13 — SCK | SPI | digital-input, digital-output |
| D26 | SDA — I2C | I2C | digital-input, digital-output |
| D27 | SCL — I2C | I2C | digital-input, digital-output |
| 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 |
| A6 | A6 — ADC | ADC | analog-input |
| A7 | A7 — Light Sensor/ADC | ADC | analog-input |

## Available Software

- **[CircuitPython]()** (open-source)
- **[Arduino]()** (open-source)
- **[MakeCode Arcade]()** (open-source)

## Description

## Overview

The Adafruit PyBadge LC is the low-cost variant of the PyBadge — a credit card-sized development board optimized for game development, conference badges, and interactive educational projects. "LC" stands for low cost, achieved by omitting a few features from the full PyBadge: no Feather headers, no STEMMA connectors, no LIS3DH accelerometer, and a single NeoPixel instead of five.

The ATSAMD51J19 ARM Cortex M4F processor at 120 MHz provides substantial computing power for game logic, sprite rendering, and audio generation. The 1.8" 160×128 TFT color display with dimmable backlight handles game graphics and badge content with DMA-accelerated drawing. Eight silicone game buttons (directional pad, two menu buttons, two action buttons) provide a complete handheld game controller layout directly on the board.

A front-facing light sensor enables ambient-responsive display brightness. The built-in buzzer speaker generates sound effects and simple music. A MicroSD slot is provided for storing game assets, levels, and save data. The 2MB SPI flash holds CircuitPython code and small assets. A LiPo battery connector with USB charging enables portable battery operation.

MakeCode Arcade support makes the PyBadge LC particularly compelling for education: students can drag-and-drop game blocks in a browser, download a .uf2 file, and have a working game running on real hardware within minutes. CircuitPython and Arduino IDE support provide pathways for more advanced programming as skills develop.

## Where to Buy

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

## Resources

- [product page](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F3939&ref=openhardware.directory&product=adafruit-pybadge-lc&source=md-export)
- [product](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F3939&ref=openhardware.directory&product=adafruit-pybadge-lc&source=md-export)
- [documentation](https://openhardware.directory/r?to=https%3A%2F%2Flearn.adafruit.com%2Fadafruit-pybadge&ref=openhardware.directory&product=adafruit-pybadge-lc&source=md-export)
- [github](https://openhardware.directory/r?to=https%3A%2F%2Fgithub.com%2Fadafruit%2FAdafruit_Arcada&ref=openhardware.directory&product=adafruit-pybadge-lc&source=md-export)

## Tags

`gaming`, `badge`, `makecode-arcade`, `circuitpython`, `arduino`, `atsamd51`, `tft-display`, `portable`, `education`

## Images

![Adafruit PyBadge LC](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-pybadge-lc/79d46dbc27f9.jpg)
![Adafruit PyBadge LC](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-pybadge-lc/6e80fef6da86.jpg)

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