add-peripheral-driver

Generate peripheral driver scaffolds with interface, mock, and example sketches.

Updated Sep 19, 2019
One-click install
npx skills add https://github.com/TizioMaurizio/ArduinoWorkshop --skill add-peripheral-driver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-peripheral-driver
Source: https://github.com/TizioMaurizio/ArduinoWorkshop/tree/main/Projects/ESP32-CAM-PlatformIO/.github/skills/add-peripheral-driver
Command: npx skills add https://github.com/TizioMaurizio/ArduinoWorkshop --skill add-peripheral-driver

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The process of adding new peripheral drivers for devices like sensors and actuators can be complex and time-consuming, requiring multiple steps and manual setup.

Core Features & Use Cases

  • Driver Scaffold: Generates a comprehensive driver setup including interface, bus layer, mock, example sketch, and error handling.
  • Protocol Support: Supports various communication protocols like I2C, SPI, UART, OneWire, and GPIO.
  • Error Handling: Includes robust error handling for bus transactions and retries for transient errors.

Quick Start

To add a new peripheral driver for a sensor, first gather the device information and datasheet, then run the add-peripheral-driver skill.

Frequently Asked Questions about add-peripheral-driver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an Arduino sensor driver without writing boilerplate code?

To generate an Arduino sensor driver, you provide the device datasheet and run the skill to automatically scaffold the driver interface, implementation, mock, and example sketches with built-in error handling.

What communication protocols are supported when adding a peripheral driver for ESP32?

Adding a peripheral driver for ESP32 supports multiple communication protocols including I2C, SPI, UART, OneWire, and GPIO for seamless integration of sensors, displays, and actuators.

Can I automatically include error handling and retries for transient bus errors in my actuator driver?

Yes, you can include error handling in your actuator driver. The generated driver scaffold automatically implements robust error handling for bus transactions and retries for transient errors.

What's the best way to create a mock and example sketch for a new peripheral driver?

The best way to create a mock and example sketch is to use an automated driver generation skill that scaffolds the complete setup, including the bus layer and interface, directly from device information.

Do I need to manually configure the bus layer when scaffolding a driver for an ESP32 display?

No, you do not need to manually configure the bus layer. The driver scaffold automatically generates the bus layer setup alongside the driver interface and implementation for your ESP32 display.