Skip to main content

LED Display

You can wrap an LED matrix as a Display and render graphics to it as if it was just another screen.

import { Led } from "@devicescript/core"
import { startLedDisplay } from "@devicescript/runtime"

const led = new Led()
const display = await startLedDisplay(led)
// render
display.image.print(`Hello world!`, 3, 10)
// and show
await display.show()

The palette is automatically inferred from the waveLength register; otherwise you can provide one.

const display = await startLedDisplay(led, palette)