Skip to content

Commit

Permalink
Merge pull request #393 from mitmedialab/curriculum-facedisplay
Browse files Browse the repository at this point in the history
Face display
  • Loading branch information
mayarajan3 authored Feb 13, 2025
2 parents 5792239 + b1302d4 commit 01c8dbc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extensions/src/doodlebot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ export default class DoodlebotBlocks extends extension(details, "ui", "indicator
if (window.isSecureContext) this.openUI("Connect")
else this.connectToDoodlebotWithExternalBLE();
this._loop();
env.runtime.on("PROJECT_RUN_START", () => {
this.setDisplay("love");
})
env.runtime.on("PROJECT_RUN_STOP", () => {
this.setDisplay("sad");
})
}

private async connectToDoodlebotWithExternalBLE() {
Expand Down

0 comments on commit 01c8dbc

Please sign in to comment.