Individual skill
atmega32u4-beetle
Firmware development for the Beetle — the CJMCU / DFRobot "Mini Arduino Leonardo" USB board (ATmega32U4 @ 16 MHz, 5 V, 21×28 mm, castellated pads) — its native USB (CDC serial + HID keyboard/mouse/joystick), Caterina bootloader and 1200 bps touch upload, ten exposed I/O pads, four PWM pins across Timer0/Timer1, five ADC channels, I2C on D2/D3, SPI on the back-side ICSP pads, 28 KB usable flash and 2.5 KB SRAM, and the PlatformIO + Arduino AVR core (`board = leonardo`) setup around them. Use when working on this board or any ATmega32U4 Leonardo/Micro/Pro-Micro-class clone: project setup, platformio.ini, why the board shows up as two different serial ports, uploads that fail or hang, recovering a bricked or HID-spamming board by shorting the ICSP reset pads, pin mapping and which pads are missing, PWM/timer conflicts, Servo and tone, USB HID keyboard projects, the SRAM budget, powering from the + pad, or debugging why something on the board does not work.
skills/avr/atmega32u4-beetle/SKILL.md
Source commit 816967f30a7dbdf4759ad585b822eda3575f720c
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 11, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 27
- Repository last updated
- Oct 30, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agentic-ai Repository topic
- arduino Repository topic
- claude-code Repository topic
- esp32 Repository topic
- mcu Repository topic
- pico Repository topic
- platformio Repository topic
- skill-md Repository topic
- skills Repository topic
- stm32 Repository topic
- testing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 19,718 bytesSKILL.mdcore · 19,718 bytesassets/IMAGE.mddoc · 448 bytesreference/board-hardware.mddoc · 33,332 bytesreference/recipes.mddoc · 18,735 bytestemplate/.gitignoreasset · 13 bytestemplate/README.mddoc · 4,609 bytestemplate/include/board.hasset · 6,366 bytestemplate/platformio.iniasset · 1,565 bytestemplate/src/main.cppasset · 4,091 bytestemplate/variants/hid/main.cppasset · 3,123 bytestemplate/variants/minimal/main.cppasset · 1,019 bytestemplate/variants/new-project.shruns · 1,703 bytes
Read excerpt
# Beetle — Mini Arduino Leonardo (ATmega32U4)
Board-specific firmware knowledge. The Beetle is an ATmega32U4 with **native
USB** and **ten pads**, and almost every trap on it comes from one of those
two facts: USB means the programming interface is the sketch you are about
to replace, and ten pads means most of the Leonardo pin numbering the
compiler accepts goes nowhere on this board.
- `reference/board-hardware.md` — the complete board reference: pad
inventory and full pin map, the sixteen I/O lines that are not brought
out, power tree, clock and PLL, memory map, fuses and the Caterina
bootloader **plus** a development guide (Part II: §8 toolchain, §9 USB and
the two serial ports, §10 peripheral cookbook, §11 gotchas, §12 flashing
and recovery, §13 symptom → cause → fix table).