Skip to content

Commit

Permalink
add configurable delay
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Feb 23, 2024
1 parent 0db3256 commit 4d3e55d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/screen---st7735/targetoverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ function img(lits: any, ...args: any[]): Image { return null }
// set palette before creating screen, so the JS version has the right BPP
image.setPalette(hex`__palette`)
//% whenUsed

const delay = control.getConfigValue(DAL.CFG_DISPLAY_DELAY, 0)
control.waitMicros(delay * 1000)
const screen = _screen_internal.createScreen();

namespace image {
Expand Down

0 comments on commit 4d3e55d

Please sign in to comment.