Skip to content

Commit

Permalink
update first sample
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Sep 18, 2023
1 parent b3b9351 commit 2fc1bc0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace microcode {

//% shim=TD_NOOP
function extraSamples(reg: name2Image) {
reg["smiley_buttons"] = icondb.sampleSmileyButtons
reg["clap_lights"] = icondb.sampleClapLights
reg["firefly"] = icondb.sampleFirefly
reg["flashing_heart"] = icondb.sampleFlashingHeart
// this.reg["dice"] = icondb.sampleDice // nice icon, don't delete, but not currently used
reg["rock_paper_scissors"] = icondb.sampleRockPaperScissors
reg["teleport_duck"] = icondb.sampleTeleportDuck
Expand Down Expand Up @@ -64,7 +64,7 @@ namespace microcode {
this.reg["note_off"] = icondb.note_off

// sample icons
this.reg["flashing_heart"] = icondb.sampleFlashingHeart
this.reg["smiley_buttons"] = icondb.sampleSmileyButtons

// sensors
this.reg[TID_SENSOR_TIMER] = icondb.tile_timer
Expand Down
2 changes: 1 addition & 1 deletion home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace microcode {
this.samplesBtn = new Button({
parent: null,
style: ButtonStyles.Transparent,
icon: "rock_paper_scissors",
icon: "smiley_buttons",
ariaId: "C1",
x: 0,
y: 30,
Expand Down
19 changes: 9 additions & 10 deletions samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@ namespace microcode {
//% shim=TD_NOOP
function rawWebAppSamples(s: rawSampleList) {
s.concat([
{
label: "first program",
b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkYzIl0sIk0iOlsiTTE1KDAwMDAwMDEwMTAwMDAwMDEwMDAxMDExMTApIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjMiXSwiTSI6WyJNMTlnaWdnbGUiXX0se31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7fV19LCJ2ZXJzaW9uIjoidjIuNC43In0",
},
{
label: "flashing heart",
ariaId: "N2",
b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzQiXSwiQSI6WyJBNSJdLCJNIjpbIk0xNSgwMTAxMDEwMTAxMTAwMDEwMTAxMDAwMTAwKSIsIk0xNSgwMDAwMDAxMDEwMDExMTAwMDEwMDAwMDAwKSJdfSx7IlMiOlsiUzQiXSwiQSI6WyJBMiJdLCJNIjpbIk0xOWdpZ2dsZSJdfSx7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX1dfSwidmVyc2lvbiI6InYyLjQuNyJ9",
icon: "flashing_heart",
},
{
label: "smiley buttons",
ariaId: "N3",
b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkYzIl0sIk0iOlsiTTE1KDExMDExMTEwMTEwMDAwMDEwMDAxMDExMTApIiwiTTE1KDExMDExMDAwMDAxMDAwMTAxMTEwMDAwMDApIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjMiXSwiTSI6WyJNMTloYXBweSJdfSx7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkY0Il0sIk0iOlsiTTE1KDExMDExMTEwMTEwMDAwMDAxMTEwMTAwMDEpIiwiTTE1KDExMDExMTEwMTEwMDAwMDAwMDAwMTExMTEpIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjQiXSwiTSI6WyJNMTlzYWQiXX0se31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7fV19LCJ2ZXJzaW9uIjoidjIuNC43In0=",
icon: "smiley_buttons",
},
{
label: "counter",
ariaId: "N14",
Expand Down Expand Up @@ -183,10 +181,11 @@ namespace microcode {
icon: "new_program",
},
{
label: "first program",
b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkYzIl0sIk0iOlsiTTE1KDAwMDAwMDEwMTAwMDAwMDEwMDAxMDExMTApIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjMiXSwiTSI6WyJNMTlnaWdnbGUiXX0se31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7fV19LCJ2ZXJzaW9uIjoidjIuNC43In0",
},
]
label: "smiley buttons",
ariaId: "N3",
b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkYzIl0sIk0iOlsiTTE1KDExMDExMTEwMTEwMDAwMDEwMDAxMDExMTApIiwiTTE1KDExMDExMDAwMDAxMDAwMTAxMTEwMDAwMDApIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjMiXSwiTSI6WyJNMTloYXBweSJdfSx7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkY0Il0sIk0iOlsiTTE1KDExMDExMTEwMTEwMDAwMDAxMTEwMTAwMDEpIiwiTTE1KDExMDExMTEwMTEwMDAwMDAwMDAwMTExMTEpIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjQiXSwiTSI6WyJNMTlzYWQiXX0se31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7fV19LCJ2ZXJzaW9uIjoidjIuNC43In0=",
icon: "smiley_buttons",
}]
return s
}

Expand Down

0 comments on commit 2fc1bc0

Please sign in to comment.