Skip to content

Commit

Permalink
eh
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimifr committed May 15, 2024
1 parent 9267b10 commit 3cc4f93
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions raw-arduino-data/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms))
}

while (true) {
function updateRandVal() {
let randVal1 = Math.random();
let randVal2 = Math.random();
let randVal3 = Math.random();
Expand All @@ -14,3 +10,5 @@ while (true) {

document.getElementById("seabed").innerText = 100 + randVal4 + randVal5 + randVal6;
}

setInterval(updateRandVal, 1000);

0 comments on commit 3cc4f93

Please sign in to comment.