File tree Expand file tree Collapse file tree 5 files changed +96
-44
lines changed Expand file tree Collapse file tree 5 files changed +96
-44
lines changed Original file line number Diff line number Diff line change 1+ Page 1
2+ When press button_A Do press LED_image `
3+ 1 1 . 1 1
4+ 1 1 . 1 1
5+ . . . . .
6+ 1 . . . 1
7+ . 1 1 1 .
8+ `
9+ LED_image `
10+ 1 1 . 1 1
11+ . . . . .
12+ 1 . . . 1
13+ . 1 1 1 .
14+ . . . . .
15+ `
16+
17+
18+ When press button_A Do press happy
19+
20+ When press button_B Do press LED_image `
21+ 1 1 . 1 1
22+ 1 1 . 1 1
23+ . . . . .
24+ . 1 1 1 .
25+ 1 . . . 1
26+ `
27+ LED_image `
28+ 1 1 . 1 1
29+ 1 1 . 1 1
30+ . . . . .
31+ . . . . .
32+ 1 1 1 1 1
33+ `
34+
35+
36+ When press button_B Do press sad
37+
38+ Page 2
39+
40+ Page 3
41+
42+ Page 4
43+
44+ Page 5
45+
46+
Original file line number Diff line number Diff line change 1+ Page 1
2+ When press button_A Do show_image LED_image `
3+ 1 1 . 1 1
4+ 1 1 . 1 1
5+ . . . . .
6+ 1 . . . 1
7+ . 1 1 1 .
8+ `
9+ LED_image `
10+ 1 1 . 1 1
11+ . . . . .
12+ 1 . . . 1
13+ . 1 1 1 .
14+ . . . . .
15+ `
16+
17+
18+ When press button_A Do play_sound happy
19+
20+ When press button_B Do show_image LED_image `
21+ 1 1 . 1 1
22+ 1 1 . 1 1
23+ . . . . .
24+ . 1 1 1 .
25+ 1 . . . 1
26+ `
27+ LED_image `
28+ 1 1 . 1 1
29+ 1 1 . 1 1
30+ . . . . .
31+ . . . . .
32+ 1 1 1 1 1
33+ `
34+
35+
36+ When press button_B Do play_sound sad
37+
38+ Page 2
39+
40+ Page 3
41+
42+ Page 4
43+
44+ Page 5
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -297,14 +297,16 @@ namespace microcode {
297297
298298 progToString ( this . progdef )
299299 const pas1 = progToStringRet
300- console . log ( `PAS1\n${ pas1 } ` )
300+ // console.log(`PAS1\n${pas1}`)
301301 parseProg ( pas1 )
302302 const progFromString = parseProgRet
303303 progToString ( progFromString )
304304 const pas2 = progToStringRet
305- console . log ( "PAS2" )
306- console . log ( pas2 )
305+ // console.log("PAS2")
306+ // console.log(pas2)
307307 // check the programs are the same
308+ console . log ( pas2 )
309+ // control.assert(pas1 == pas2, "progs not the same")
308310 }
309311 this . configureP1Keys ( )
310312 }
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ namespace microcode {
6161 control . assert ( rule != undefined , `No Rule definition` )
6262 const tid = getTid ( tile )
6363 if ( isSensor ( tid ) ) rule . push ( tile , "sensors" , false )
64- if ( isFilter ( tid ) ) rule . push ( tile , "filters" , false )
64+ else if ( isFilter ( tid ) ) rule . push ( tile , "filters" , false )
6565 else if ( isModifier ( tid ) ) rule . push ( tile , "modifiers" , false )
6666 else rule . push ( tile , "actuators" , false )
6767 }
You can’t perform that action at this time.
0 commit comments