Test interleaving

This commit is contained in:
Michal Moskal 2017-07-04 21:26:20 +02:00
parent dcd293abe4
commit d7f97d6476

View File

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