2017-12-15 11:55:20 +00:00
|
|
|
// This is the last thing executed before user code
|
2019-09-07 18:22:39 -07:00
|
|
|
console.addListener(function(msg: string) {
|
|
|
|
control.dmesg(msg.substr(0, msg.length - 1))
|
|
|
|
})
|
2018-06-20 13:32:00 -07:00
|
|
|
// pulse green, play startup sound, turn off light
|
|
|
|
brick.setStatusLight(StatusLight.GreenPulse);
|
2018-06-20 15:21:09 -07:00
|
|
|
// We pause for 100ms to give time to read sensor values, so they work in on_start block
|
|
|
|
pause(400)
|
|
|
|
// and we're ready
|
2018-06-20 13:32:00 -07:00
|
|
|
brick.setStatusLight(StatusLight.Off);
|