Delay user code by 100ms to get sensor reading (fixes #90)
This commit is contained in:
4
libs/ev3/startup.ts
Normal file
4
libs/ev3/startup.ts
Normal file
@ -0,0 +1,4 @@
|
||||
// This is the last thing executed before user code
|
||||
|
||||
// We pause for 100ms to give time to read sensor values, so they work in on_start block
|
||||
loops.pause(100)
|
Reference in New Issue
Block a user