Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit 1878ed2

Browse files
committed
updated sample
1 parent baf28e0 commit 1878ed2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

jacdac-ts

packages/sampleprj/src/mainpicobricksoledscreen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import { pins, board } from "@dsboard/pico_bricks"
22
import { SSD1306Driver, startIndexedScreen } from "@devicescript/drivers"
33

44
const screen = await startIndexedScreen(
5-
new SSD1306Driver({ width: 64, height: 48 })
5+
new SSD1306Driver({ width: 128, height: 64 })
66
)
77
let i = 0
88
setInterval(async () => {
99
console.log(i)
10+
screen.image.fill(0)
1011
screen.image.print(`Hello world! ${i++}`, 3, 10)
1112
await screen.show()
1213
}, 1000)

0 commit comments

Comments
 (0)