pxt-ev3/libs/core/test.ts
2017-07-04 21:26:20 +02:00

15 lines
246 B
TypeScript

let i = 1
let f = 0.5
let plus = i + f
let minus = i - f
for (let i = 0; i < 3; ++i) {
loops.forever(() => {
let r = Math.randomRange(0, 100)
serial.writeValue("R", r)
loops.pause(1000)
})
loops.pause(300)
}