pixelblaze_create_pattern
Create and activate a new LED pattern on PixelBlaze by providing JavaScript code that defines a render function.
Instructions
Create a new pattern on the PixelBlaze with the given JavaScript code, then activate it.
Args: name: Display name for the new pattern. code: PixelBlaze JavaScript source code (must define a render(index) function).
Returns a dict with the new pattern's 'id' and 'name'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||