ExampleTemplate

Template for generating Arduino example sketches that demonstrate neural network usage.

This object generates complete Arduino sketches that show how to use the generated neural network library, including input data loading, inference calls, and output reading.

Functions

Link copied to clipboard
fun generate(libraryName: String, inputDims: IntArray, outputDims: IntArray, description: String = "Neural network inference example"): String

Generates an Arduino example sketch demonstrating neural network inference.

Link copied to clipboard
fun generateMinimal(libraryName: String, inputSize: Int, outputSize: Int): String

Generates a simple example sketch with minimal functionality for testing.