m5stack-cap-lora-1262

m5stack-cap-lora-1262 is a skill for Claude Code from iot-forge/m5stack-skills. It costs 254 tokens per session (6,588 once invoked), scanned A, original, MIT.

A hardware and firmware reference for the M5Stack Cap LoRa-1262, an add-on for the Cardputer Adv and CardputerZero. It combines a LoRa long-range radio with a GNSS receiver for satellite positioning.

In plain words
What is it for?
Use it to write firmware that communicates over LoRa, reads GPS or other satellite-position data, controls the antenna path, and connects the cap to a supported Cardputer.
Why use it?
It explains the cap's connections, radio controls, and startup requirements, including the need to attach the LoRa antenna before powering it. This reduces the risk of wiring mistakes or hardware damage.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cardputer plugin — 2 skills shipped together

Good fit Use it to write firmware that communicates over LoRa, reads GPS or other satellite-position data, controls the antenna path, and connects the cap to a supported Cardputer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iot-forge/m5stack-skills/cap-lora-1262
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iot-forge/m5stack-skills --skill cap-lora-1262
Clone the repo
git clone --depth 1 https://github.com/iot-forge/m5stack-skills

Made for: Claude Code.

Or install cardputer, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for m5stack-cap-lora-1262

README.md
[![agentmods](https://agentmods.dev/badge/skills/iot-forge/m5stack-skills/cap-lora-1262/github.svg)](https://agentmods.dev/skills/iot-forge/m5stack-skills/cap-lora-1262)
Your own site
<a href="https://agentmods.dev/skills/iot-forge/m5stack-skills/cap-lora-1262"><img src="https://agentmods.dev/badge/skills/iot-forge/m5stack-skills/cap-lora-1262/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for m5stack-cap-lora-1262

Your own site · 80×15
<a href="https://agentmods.dev/skills/iot-forge/m5stack-skills/cap-lora-1262"><img src="https://agentmods.dev/badge/skills/iot-forge/m5stack-skills/cap-lora-1262.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 254 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00254 $0.06588
Opus 5.5 $0.00102 $0.02635
Sonnet 5.5 $0.00051 $0.01318
Haiku 4.5 $0.00025 $0.00659

Measured 11d ago against content hash 121021864d0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

m5stack-cap-lora-1262 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cardputer/skills/cap-lora-1262/SKILL.md · 455 lines

How it starts

The opening of the file, as written. The whole thing — 455 lines — stays where its author put it; the contents beside it link to each section on GitHub.

M5Stack Cap LoRa-1262 (SKU U214)

A snap-on Cap for the M5Stack Cardputer Adv (K132-Adv) and CardputerZero that adds two independent radios in one accessory:

  • LoRa: Semtech SX1262 sub-GHz transceiver, 868–923 MHz, +22 dBm TX, −147 dBm RX (LDR mode), FSK/GFSK/MSK/GMSK/LoRa/OOK, external RP-SMA antenna (3 dBi, 108×9.3 mm, included).
  • GNSS: ATGM336H-6N@AT6668 multi-constellation receiver (GPS/QZSS/ BeiDou-2/BeiDou-3/Galileo/GLONASS), 50 channels, up to 10 Hz update, <1.5 m CEP50, built-in ceramic patch antenna. UART interface, default 115200 baud, 8N1.

Official docs: https://docs.m5stack.com/en/cap/Cap_LoRa-1262 Product page/SKU: https://docs.m5stack.com/en/products/sku/U214

Read this first — four things that will kill the cap or your bring-up

  1. Never power on without the LoRa antenna installed. M5Stack's docs are explicit: "the device hardware may be permanently damaged." An SX1262 driving +22 dBm into no load reflects power back into its PA. This is not a warning that can be softened — the antenna is a prerequisite, not an accessory.
  2. The RF antenna switch is gated by an I/O expander pin, not by the SX1262 itself. SDA/SCL on the cap connector go to a PI4IOE5V6408 I/O expander (I2C 0x43) whose P0 must be driven high to enable the RF path. If your first transmit()/receive() calls do nothing (no error, but no packets on the air / no packets received), you almost certainly never enabled P0. The expander's registers are easy to get wrong — 0x01 is the device-ID/control register, and bit 0 there is a software reset; the output register is 0x05. See "Enabling the RF switch" below.
  3. The LoRa SPI bus is the microSD SPI bus. On the Cardputer Adv, LoRa_SCK=G40, LoRa_MOSI=G14, LoRa_MISO=G39 are the same pins used by the microSD slot (SD_CLK=G40, SD_MOSI=G14, SD_MISO=G39). Only the chip-select is separate (LoRa_NSS=G5 vs SD_CS=G12). This works — SPI is designed for exactly this — but you must not init the SD bus and the LoRa bus as two independent SPIClass instances with different clock/mode settings. Share one SPIClass, or accept that accessing SD and LoRa concurrently requires bus mediation.
  4. A fast reply from the other side arrives before this radio is listening. After TX the SX1262 drops back to standby and has to restart its TCXO before RX; measured TX→RX turnaround on this cap is ~7–10 ms, while an SF7/500 kHz preamble lasts ~3 ms. A peer that answers immediately is never heard. See "SX1262 without RadioLib, and the TX → RX turnaround" below — this cost a field project an hour of debugging.

Read the full file on GitHub · 455 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +101 lines 121021864d0a
  2. 1mo ago First seen · 354 lines · 254 tokens per session scan A 6c6d8c12d6a9

Subscribe to this mod's changes

m5stack-cap-lora-1262 is a skill published in the GitHub repository iot-forge/m5stack-skills (5 stars, last pushed 12d ago), licensed MIT. It adds 254 tokens to every session and 6,588 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.