pxt-ev3/libs/core/test.ts
2017-07-02 13:32:17 +02:00

12 lines
173 B
TypeScript

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