2017-12-15 12:55:20 +01:00
|
|
|
// This is the last thing executed before user code
|
2019-10-09 06:57:55 +02:00
|
|
|
console.addListener(function(priority: ConsolePriority, msg: string) {
|
2019-09-08 03:22:39 +02:00
|
|
|
control.dmesg(msg.substr(0, msg.length - 1))
|
|
|
|
})
|
2018-06-20 22:32:00 +02:00
|
|
|
// pulse green, play startup sound, turn off light
|
|
|
|
brick.setStatusLight(StatusLight.GreenPulse);
|
2018-06-21 00:21:09 +02: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 22:32:00 +02:00
|
|
|
brick.setStatusLight(StatusLight.Off);
|