Rename crate to escpos-vfd and add tokio support Introduce a configurable crate-ready API with presets, typed errors, optional Tokio async support, and expanded documentation.
69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
version: "3"
|
|
|
|
vars:
|
|
VFD_PORT: /dev/cu.usbmodem101
|
|
VFD_WIDTH: "20"
|
|
|
|
tasks:
|
|
vfd:preset:
|
|
desc: Run minimal preset sync example
|
|
cmds:
|
|
- cargo run --example preset_sync -- {{.VFD_PORT}}
|
|
|
|
vfd:manual:
|
|
desc: Run minimal manual sync configuration example
|
|
cmds:
|
|
- cargo run --example manual_sync -- {{.VFD_PORT}}
|
|
|
|
vfd:tokio:
|
|
desc: Run Tokio worker example
|
|
cmds:
|
|
- cargo run --features tokio --example tokio_worker -- {{.VFD_PORT}} {{.VFD_WIDTH}}
|
|
|
|
vfd:clock:
|
|
desc: Run VFD clock example
|
|
cmds:
|
|
- cargo run --example clock -- {{.VFD_PORT}} {{.VFD_WIDTH}} {{.VFD_BRIGHTNESS | default "2"}}
|
|
vars:
|
|
VFD_BRIGHTNESS: "2"
|
|
|
|
vfd:marquee:
|
|
desc: Run VFD marquee example
|
|
cmds:
|
|
- cargo run --example marquee -- {{.VFD_PORT}} {{.VFD_WIDTH}} {{.VFD_CPS | default "8"}} {{.VFD_END_PAUSE_MS | default "1500"}} {{.VFD_BRIGHTNESS | default "2"}}
|
|
vars:
|
|
VFD_CPS: "8"
|
|
VFD_END_PAUSE_MS: "1500"
|
|
VFD_BRIGHTNESS: "3"
|
|
|
|
vfd:brightness:
|
|
desc: Run VFD brightness example
|
|
cmds:
|
|
- cargo run --example brightness -- {{.VFD_PORT}} {{.VFD_WIDTH}} {{.VFD_DELAY_MS | default "800"}}
|
|
vars:
|
|
VFD_DELAY_MS: "800"
|
|
|
|
vfd:position:
|
|
desc: Run VFD print_at position demo
|
|
cmds:
|
|
- cargo run --example position -- {{.VFD_PORT}} {{.VFD_WIDTH}} {{.VFD_DELAY_MS | default "80"}}
|
|
vars:
|
|
VFD_DELAY_MS: "80"
|
|
|
|
vfd:update_at:
|
|
desc: Run VFD partial updates demo (print_at)
|
|
cmds:
|
|
- cargo run --example update_at -- {{.VFD_PORT}} {{.VFD_WIDTH}} {{.VFD_DELAY_MS | default "200"}}
|
|
vars:
|
|
VFD_DELAY_MS: "200"
|
|
|
|
vfd:blink:
|
|
desc: Run VFD blink demo (print_at)
|
|
cmds:
|
|
- cargo run --example blink -- {{.VFD_PORT}} {{.VFD_WIDTH}} {{.VFD_DELAY_MS | default "400"}} {{.VFD_X | default "1"}} {{.VFD_Y | default "2"}} {{.VFD_TEXT | default "BLINK"}}
|
|
vars:
|
|
VFD_DELAY_MS: "400"
|
|
VFD_X: "1"
|
|
VFD_Y: "2"
|
|
VFD_TEXT: "BLINK"
|