From 2e102dbba21b85eafddd998ce4de81dde07ac0ac Mon Sep 17 00:00:00 2001 From: flop Date: Wed, 13 May 2026 13:40:50 +0200 Subject: [PATCH] fix: blink config --- ts/index.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/ts/index.html b/ts/index.html index d5ba974..fde17f7 100644 --- a/ts/index.html +++ b/ts/index.html @@ -135,16 +135,18 @@ label: "Blink (animation)", make() { return new MonoDisplayFile({ - elements_always: [{ - type: ElementType.Animation, - 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 - frames: [ - { pixels: new Uint8Array(W * H).fill(1) }, - { pixels: new Uint8Array(W * H).fill(0) }, - ], - }], + elements_always: { + flags: { drawFront: true, clearBuffer: true }, + elements: [{ + type: ElementType.Animation, + width: W, height: H, + updateInterval: 12, // every 13 ticks ≈ 500ms per frame at 25fps + frames: [ + { pixels: new Uint8Array(W * H).fill(1) }, + { pixels: new Uint8Array(W * H).fill(0) }, + ], + }], + }, }).toBuffer(); }, },