用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AeonDave/malskill --skill lora-modules命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | lora-modules |
| description | LoRa and LoRaWAN SPI module interfacing (SX1276, SX1262), frequency band tuning, and radio libraries. |
Goal: Establish long-range, low-power radio communication using Semtech LoRa transceivers (SX1276/SX1278, RFM95, SX1262) via SPI.
LoRa chips communicate via SPI and use a few extra interrupt pins to notify the MCU when a packet is received.
SCK, MISO, MOSI -> Hardware SPI.NSS (Chip Select).RST (Reset pin).DIO0, DIO1 (Data Input/Output interrupts).Logic Level: Strictly 3.3V.
RadioHead (RH_RF95) or LoRa library. No network joining, no encryption by default.LMIC (LoRaMAC-in-C) library. Uses AES-128 encryption and requires AppSKey/NwkSKey provisioning.#include <SPI.h>
#include <LoRa.h>
void setup() {
Serial.begin(115200);
// CS=10, reset=9, DIO0=2
LoRa.setPins(10, 9, 2);
// Initialize at 868 MHz (Europe) or 915 MHz (US)
if (!LoRa.begin(868E6)) {
Serial.println("Starting LoRa failed!");
while (1);
}
}
void loop() {
LoRa.beginPacket();
LoRa.print("Hello from Malskill");
LoRa.endPacket();
delay(10000);
}
You can tune the signal using LoRa.setSpreadingFactor(sf).