Initial draft of events with GNU PTH

This commit is contained in:
Michal Moskal
2017-07-02 13:32:17 +02:00
parent 5e0e1caef3
commit a1fc4290f4
2 changed files with 144 additions and 20 deletions

View File

@ -3,11 +3,9 @@ let f = 0.5
let plus = i + f
let minus = i - f
while (true) {
let r = Math.random()
loops.forever(() => {
let r = Math.randomRange(0, 100)
serial.writeValue("R", r)
loops.pause(1000)
}
//loops.forever(() => {
//})
})