Skip to content

Commit 45c4d95

Browse files
committed
pxt.json: no longer dpenedent on display-shiled, now dependent on IO-Devices, Screen is now a wrapper around DisplayManager
1 parent c675d5a commit 45c4d95

File tree

3 files changed

+68
-389
lines changed

3 files changed

+68
-389
lines changed

pxt.json

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
{
2-
"name": "user-interface-base",
3-
"version": "0.0.27",
4-
"files": [
5-
"affine.ts",
6-
"bounds.ts",
7-
"component.ts",
8-
"math.ts",
9-
"screen.ts",
10-
"sprite.ts",
11-
"appconfig.ts",
12-
"accessibility.ts",
13-
"keymap.ts",
14-
"button.ts",
15-
"scene.ts",
16-
"cursor.ts",
17-
"picker.ts",
18-
"navigator.ts",
19-
"cursorscene.ts",
20-
"options.ts",
21-
"coreAssets.ts"
22-
],
23-
"supportedTargets": [
24-
"microbit"
25-
],
26-
"testFiles": [
27-
"test.ts"
28-
],
29-
"dependencies": {
30-
"core": "*",
31-
"radio": "*",
32-
"microphone": "*",
33-
"display-shield": "github:microbit-apps/display-shield#v1.0.4"
34-
},
35-
"testDependencies": {}
2+
"name": "user-interface-base",
3+
"version": "0.0.27",
4+
"files": [
5+
"affine.ts",
6+
"bounds.ts",
7+
"component.ts",
8+
"math.ts",
9+
"screen.ts",
10+
"sprite.ts",
11+
"appconfig.ts",
12+
"accessibility.ts",
13+
"keymap.ts",
14+
"button.ts",
15+
"scene.ts",
16+
"cursor.ts",
17+
"picker.ts",
18+
"navigator.ts",
19+
"cursorscene.ts",
20+
"options.ts",
21+
"coreAssets.ts",
22+
"text.ts"
23+
],
24+
"supportedTargets": [
25+
"microbit"
26+
],
27+
"testFiles": [
28+
"test.ts"
29+
],
30+
"dependencies": {
31+
"core": "*",
32+
"radio": "*",
33+
"microphone": "*",
34+
"bitmap": "*",
35+
"IO-Devices": "file:../IO-Devices"
36+
},
37+
"testDependencies": {}
3638
}

scene.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ namespace user_interface_base {
106106
this.draw()
107107
if (Options.fps)
108108
Screen.image.print(context.EventContext.lastStats, 1, 1, 15)
109-
if (screen() !== Screen.image)
110-
screen().drawBitmap(Screen.image, 0, 0)
109+
110+
// if (screen() !== Screen.image)
111+
// screen().drawBitmap(Screen.image, 0, 0)
111112

112113
// control.__screen.update(); // not neccessary?
113114
}

0 commit comments

Comments
 (0)