ArduinoLibraryPackager
Packages generated C code into a complete Arduino library structure.
This class creates the complete Arduino library directory structure with all necessary files including library.properties, source/header files, and example sketches. The generated library is ready for immediate use in Arduino IDE.
Following Arduino library specification 1.5:
library.properties file with metadata
src/ directory containing source and header files
examples/ directory containing demonstration sketches
README.md with usage instructions
Note: This is the core implementation that generates all file contents. Platform-specific file I/O operations (createDirectoryIfNotExists, writeFile, cleanupOnError) are implemented as placeholders and would need platform-specific implementations or be handled by a platform-specific facade.
Functions
Creates a complete Arduino library structure from generated C code.