fix: blink config

pull/1/head
flop 4 weeks ago
parent ec21555d3a
commit 2e102dbba2
  1. 6
      ts/index.html

@ -135,16 +135,18 @@
label: "Blink (animation)", label: "Blink (animation)",
make() { make() {
return new MonoDisplayFile({ return new MonoDisplayFile({
elements_always: [{ elements_always: {
flags: { drawFront: true, clearBuffer: true },
elements: [{
type: ElementType.Animation, type: ElementType.Animation,
width: W, height: H, width: W, height: H,
// updateInterval: 0 = advance every tick (25fps → ~400ms/frame at fps=25 with 2 frames)
updateInterval: 12, // every 13 ticks ≈ 500ms per frame at 25fps updateInterval: 12, // every 13 ticks ≈ 500ms per frame at 25fps
frames: [ frames: [
{ pixels: new Uint8Array(W * H).fill(1) }, { pixels: new Uint8Array(W * H).fill(1) },
{ pixels: new Uint8Array(W * H).fill(0) }, { pixels: new Uint8Array(W * H).fill(0) },
], ],
}], }],
},
}).toBuffer(); }).toBuffer();
}, },
}, },

Loading…
Cancel
Save