From 5e532dc2fdb0d475a45d2eccb325ef55705e4661 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 18 Oct 2019 16:36:40 -0700 Subject: [PATCH] adding blinky --- libs/screen/targetoverrides.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/screen/targetoverrides.ts b/libs/screen/targetoverrides.ts index c529e259..f927b6fa 100644 --- a/libs/screen/targetoverrides.ts +++ b/libs/screen/targetoverrides.ts @@ -141,9 +141,15 @@ namespace brick { const col = 44; const lineHeight8 = image.font8.charHeight + 2; const h = screen.height; + const w = screen.width; + const blink = (control.millis() >> 5) % (w - 1); clearScreen(); + screen.setPixel(blink, 0, 1); + screen.setPixel(blink, 1, 1); + screen.setPixel(blink + 1, 0, 1); + screen.setPixel(blink + 1, 1, 1); for (let i = 0; i < 4; ++i) { const x = i * col + 2; screen.print("ABCD"[i], x, 1 * lineHeight8, 1, image.font8)