From 01b0a47ed1d6b1fcc7eab09579e03ea961663317 Mon Sep 17 00:00:00 2001 From: "Tom Ball (MSR)" Date: Wed, 9 Oct 2024 08:47:45 -0700 Subject: [PATCH] fix up to new beta --- app/mkc.json | 2 +- app/package.json | 2 +- assets.ts | 2 +- home.ts | 2 +- liveDataViewer.ts | 6 +++--- mkc.json | 2 +- pxt.json | 2 +- screen.ts | 4 ++-- tabularDataViewer.ts | 2 +- tooltips.ts | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/mkc.json b/app/mkc.json index 969e2ad..7c91db3 100644 --- a/app/mkc.json +++ b/app/mkc.json @@ -1,5 +1,5 @@ { - "targetWebsite": "https://makecode.microbit.org/alpha", + "targetWebsite": "https://makecode.microbit.org/beta", "links": { "microdata": "../" } diff --git a/app/package.json b/app/package.json index 4001acf..6e5e92f 100644 --- a/app/package.json +++ b/app/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "pxt-microbit": "^7.1.2" + "pxt-microbit": "^7.1.9" } } diff --git a/assets.ts b/assets.ts index 32876ad..69521d2 100644 --- a/assets.ts +++ b/assets.ts @@ -123,7 +123,7 @@ namespace icondb { // - upscale 5x5 image to 16 x 16, add halo export function renderMicrobitLEDs(led55: Bitmap) { - const ret = bitmap.create(16, 16) + const ret = bitmaps.create(16, 16) ret.fill(15) for (let row = 0; row < 5; row++) { for (let col = 0; col < 5; col++) { diff --git a/home.ts b/home.ts index e538ffd..f8bb39f 100644 --- a/home.ts +++ b/home.ts @@ -83,7 +83,7 @@ namespace microcode { } private drawVersion() { - const font = bitmap.font5 + const font = bitmaps.font5 Screen.print( "v1.5", Screen.RIGHT_EDGE - font.charWidth * "v1.5".length, diff --git a/liveDataViewer.ts b/liveDataViewer.ts index f8c882b..66e66af 100644 --- a/liveDataViewer.ts +++ b/liveDataViewer.ts @@ -353,7 +353,7 @@ namespace microcode { Screen.WIDTH - this.windowRightBuffer - (4 * font.charWidth), y, color, - bitmap.font5, + bitmaps.font5, ) } } @@ -383,7 +383,7 @@ namespace microcode { this.windowWidth - (1 + xText.length * font.charWidth), this.windowTopBuffer + (Screen.HEIGHT * 0.0390), // 5 1, - bitmap.font5, + bitmaps.font5, ); screen().print( @@ -391,7 +391,7 @@ namespace microcode { this.windowWidth - (1 + yText.length * font.charWidth), this.windowTopBuffer + (Screen.HEIGHT * 0.1172), // 15 1, - bitmap.font5, + bitmaps.font5, ); } diff --git a/mkc.json b/mkc.json index f0eda2f..1ea4650 100644 --- a/mkc.json +++ b/mkc.json @@ -1,3 +1,3 @@ { - "targetWebsite": "https://makecode.microbit.org/alpha" + "targetWebsite": "https://makecode.microbit.org/beta" } diff --git a/pxt.json b/pxt.json index 8f6f47e..65a2252 100644 --- a/pxt.json +++ b/pxt.json @@ -7,7 +7,7 @@ "radio": "*", "microphone": "*", "datalogger": "*", - "pxt-arcadeshield": "github:microsoft/pxt-arcadeshield#v0.1.2", + "pxt-arcadeshield": "github:microsoft/pxt-arcadeshield#v0.1.4", "jacdac": "github:microsoft/pxt-jacdac#v1.9.28", "jacdac-light-level": "github:microsoft/pxt-jacdac/light-level#v1.9.28", "jacdac-soil-moisture": "github:microsoft/pxt-jacdac/soil-moisture#v1.9.28", diff --git a/screen.ts b/screen.ts index 6aa2645..9ab63b3 100644 --- a/screen.ts +++ b/screen.ts @@ -56,7 +56,7 @@ } public static setImageSize(width: number, height: number) { - Screen.image_ = bitmap.create(width, height) + Screen.image_ = bitmaps.create(width, height) Screen.updateBounds() } @@ -341,7 +341,7 @@ x: number, y: number, color?: number, - font?: bitmap.Font, + font?: bitmaps.Font, offsets?: texteffects.TextEffectState[] ) { Screen.image.print( diff --git a/tabularDataViewer.ts b/tabularDataViewer.ts index 0744ecc..525fbf0 100644 --- a/tabularDataViewer.ts +++ b/tabularDataViewer.ts @@ -424,7 +424,7 @@ namespace microcode { Screen.LEFT_EDGE + cumulativeColOffset + (this.headerStringLengths[colID] / 2) - ((font.charWidth * value.length) / 2), Screen.TOP_EDGE + (row * tabularRowBufferSize) + (tabularRowBufferSize / 2) - 4, 0xb, - bitmap.font8 + bitmaps.font8 ) cumulativeColOffset += this.headerStringLengths[colID] diff --git a/tooltips.ts b/tooltips.ts index 235d3bf..0209b0f 100644 --- a/tooltips.ts +++ b/tooltips.ts @@ -1,7 +1,7 @@ // auto-generated, run 'node scripts/lochex.mjs' to refresh namespace microcode { export const lang = "en" - export const font = bitmap.font8 + export const font = bitmaps.font8 /**