15 lines
246 B
TypeScript
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)
|
|
}
|