2975bf2b55
* always pip console.log to dmesg * trim new line * restore storage * restore new line * remove unused variable
11 lines
403 B
TypeScript
11 lines
403 B
TypeScript
// This is the last thing executed before user code
|
|
console.addListener(function(msg: string) {
|
|
control.dmesg(msg.substr(0, msg.length - 1))
|
|
})
|
|
// pulse green, play startup sound, turn off light
|
|
brick.setStatusLight(StatusLight.GreenPulse);
|
|
// We pause for 100ms to give time to read sensor values, so they work in on_start block
|
|
pause(400)
|
|
// and we're ready
|
|
brick.setStatusLight(StatusLight.Off);
|