Skip to content

Commit 41d5d64

Browse files
committed
Updated main.ts demo, removing redundant app.ts code, removing test.ts code for now.
1 parent 1e85107 commit 41d5d64

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

app.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
namespace microgui {
2-
import AppInterface = user_interface_base.AppInterface
32
import Scene = user_interface_base.Scene
43
import SceneManager = user_interface_base.SceneManager
54

@@ -23,7 +22,6 @@ namespace microgui {
2322
basic.pause(10)
2423

2524
this.sceneManager = new SceneManager()
26-
datalogger.includeTimestamp(FlashLogTimeStampFormat.None)
2725
}
2826

2927
public pushScene(scene: Scene) {

main.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ namespace microcode {
5858
const comp3 = new ButtonCollection({
5959
alignment: GUIComponentAlignment.TOP,
6060
btns: [
61-
// [ // Row 1:
62-
// new Button({ icon: "thermometer", ariaId: "0", x: 5, y: 5, onClick: () => basic.showNumber(0) }),
63-
// new Button({ icon: "thermometer", ariaId: "1", x: 25, y: 5, onClick: () => basic.showNumber(1) }),
64-
// new Button({ icon: "thermometer", ariaId: "2", x: 45, y: 5, onClick: () => basic.showNumber(2) }),
65-
// new Button({ icon: "thermometer", ariaId: "3", x: 65, y: 5, onClick: () => basic.showNumber(3) }),
66-
// ],
61+
[ // Row 1:
62+
new Button({ icon: "thermometer", ariaId: "0", x: 5, y: 5, onClick: () => basic.showNumber(0) }),
63+
new Button({ icon: "thermometer", ariaId: "1", x: 25, y: 5, onClick: () => basic.showNumber(1) }),
64+
new Button({ icon: "thermometer", ariaId: "2", x: 45, y: 5, onClick: () => basic.showNumber(2) }),
65+
new Button({ icon: "thermometer", ariaId: "3", x: 65, y: 5, onClick: () => basic.showNumber(3) }),
66+
],
6767
// [ // Row 2:
6868
// new Button({ icon: "thermometer", ariaId: "4", x: 5, y: 30, onClick: () => basic.showNumber(4) }),
6969
// new Button({ icon: "green_tick", ariaId: "5", x: 65, y: 30, onClick: () => { } })//GUIComponentScene.makeComponentActive(0, true) })
@@ -84,10 +84,8 @@ namespace microcode {
8484
colour: 6,
8585
})
8686

87-
// const window = new GUIComponentScene({ app, components: [comp3] })
88-
// app.pushScene(window)
89-
90-
screen().fill(6)
87+
const window = new GUIComponentScene({ app, components: [comp3] })
88+
app.pushScene(window)
9189

9290
// const comp3 = new ButtonCollection({
9391
// alignment: GUIComponentAlignment.TOP,

test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
basic.showNumber(0)

0 commit comments

Comments
 (0)