This commit is contained in:
赵鑫 2022-09-01 13:57:17 +08:00
parent f545b53ad5
commit 23c1bca75f

View File

@ -60,7 +60,6 @@ function read_all_leds() {
const pixels = sense.getPixels() const pixels = sense.getPixels()
for (let y = 0; y < 8; y++) { for (let y = 0; y < 8; y++) {
for (let x = 0; x < 8; x++) { for (let x = 0; x < 8; x++) {
const element = array[x]
leds[y][x] = sense.getPixel(x, y) == [0, 0, 0] ? 0 : 1 leds[y][x] = sense.getPixel(x, y) == [0, 0, 0] ? 0 : 1
} }
} }