-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtest.ts
More file actions
27 lines (23 loc) · 735 Bytes
/
test.ts
File metadata and controls
27 lines (23 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// namespace config {
// export const DISPLAY_CFG0 = 0x02030180 // allow execution without shield plugged in
// }
// tests go here; this will not be compiled when this package is used as an extension.
const present = shieldhelpers.shieldPresent();
basic.showNumber(present ? 1 : 0)
while (true) {
let x = 0
let my = theScreen.height -1
theScreen.fill(0)
theScreen.print((my+1).toString(), 60, 60)
while (x < 160) {
theScreen.setPixel(x, 0, 9)
theScreen.setPixel(x, 2, 10)
theScreen.setPixel(x, 4, 11)
theScreen.setPixel(x, my, 9)
theScreen.setPixel(x, my - 2, 10)
theScreen.setPixel(x, my - 4, 11)
x++
basic.pause(100)
// pause
}
}