matlab-create-custom-arduino-library
Use when the user wants to use Arduino sensors or peripherals from MATLAB that are not directly supported by the MATLAB Support Package for Arduino Hardware. Triggers on requests to create, wrap, or expose a custom Arduino library to MATLAB. Also triggers on indirect questions like "How do I read humidity in MATLAB?" or "How do I display text on an LCD from MATLAB?" where the answer requires a custom Arduino add-on library. class, C++ header files, DependentLibraries, arduinoioaddons namespace, I2C/SPI/GPIO peripheral wrappers.
npx skills add matlab/matlab-agentic-toolkit --skill matlab-create-custom-arduino-library --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Create Custom Arduino Library Help the user interface with Arduino sensors or peripherals from MATLAB by creating a custom arduino library that bridges MATLAB and Arduino C++ code. ## When to Use - User wants to read sensors not natively supported (DHT11, DHT22, IMU, air quality) - User wants to control peripherals not natively supported (OLED displays, motor drivers, NeoPixels) - User asks "How do I use [sensor/actuator/peripheral] from MATLAB with Arduino?" - User wants to wrap an existing Arduino C++ library for MATLAB access - User mentions `LibraryBase`, `arduinoioaddons`, or custom addon creation ## When NOT to Use - Peripheral is already supported natively (use `listArduinoLibraries` to check) - User needs to discover or connect to an Arduino board (see `matlab-connect-arduino`) - User wants generic I2C/SPI communication (built-in) - User wants to deploy standalone Arduino code (no MATLAB connection) - User wants Simulink Arduino deployment (different workflow) - User wants to fix Arduino hardware setup screens ## Workflow **MANDATORY GATE — do not skip, but keep it fast:** Before creating a custom addon, you MUST run Steps 0 and 1 below. These are quick checks (one MATLAB
- When to Use
- When NOT to Use
- Workflow
- STEP 0: Check Native Support (ALWAYS DO FIRST)
- STEP 1: Search File Exchange (MathWorks contributions only)
- STEP 2: Gather Required Inputs
- STEP 3: Install Third-Party Arduino Library
- STEP 4: Scaffold the Add-On
- STEP 5: Configure the MATLAB Class
- STEP 6: Write the C++ Header
- STEP 7: Verify
- MATLAB Class Property Rules
- DependentLibraries Decision Table
- LibraryHeaderFiles Format
What does the matlab-create-custom-arduino-library skill do?
Use when the user wants to use Arduino sensors or peripherals from MATLAB that are not directly supported by the MATLAB Support Package for Arduino Hardware. Triggers on requests to create, wrap, or expose a custom Arduino library to MATLAB. Also triggers on indirect questions like "How do I read humidity in MATLAB?" or "How do I display text on an LCD from MATLAB?" where the answer requires a custom Arduino add-on library. class, C++ header files, DependentLibraries, arduinoioaddons namespace, I2C/SPI/GPIO peripheral wrappers.
How do I install it?
Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-create-custom-arduino-library --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
