update
This commit is contained in:
parent
c911da4dc0
commit
2bf2c86587
@ -42,8 +42,10 @@ const job = new CronJob(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let color = sense.getPixel(0, 0)
|
let color = sense.getPixel(0, 0)
|
||||||
color[2] = (color[2] + 50) % 255
|
let r = color[0]
|
||||||
sense.setPixel(0, 0, color)
|
let g = color[1]
|
||||||
|
let b = color[2]
|
||||||
|
sense.setPixel(0, 0, [r, g > 0 ? 0 : 255, b])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user