This commit is contained in:
赵鑫 2022-09-01 15:50:55 +08:00
parent c911da4dc0
commit 2bf2c86587

View File

@ -42,8 +42,10 @@ const job = new CronJob(
}
} else {
let color = sense.getPixel(0, 0)
color[2] = (color[2] + 50) % 255
sense.setPixel(0, 0, color)
let r = color[0]
let g = color[1]
let b = color[2]
sense.setPixel(0, 0, [r, g > 0 ? 0 : 255, b])
}
})
},