From f53010763aa308314f733249f4b6ffec8e54977e Mon Sep 17 00:00:00 2001 From: Peli Date: Tue, 4 Feb 2020 16:58:12 -0800 Subject: [PATCH] more fixes --- sim/tsconfig.json | 2 +- sim/visuals/neopixel.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/tsconfig.json b/sim/tsconfig.json index 98cd3cb1..d043b21a 100644 --- a/sim/tsconfig.json +++ b/sim/tsconfig.json @@ -9,7 +9,7 @@ "newLine": "LF", "sourceMap": false, "lib": ["dom", "dom.iterable", "scripthost", "es6"], - "types": ["jquery", "bluebird"], + "types": ["bluebird"], "typeRoots": ["../node_modules/@types"] } } diff --git a/sim/visuals/neopixel.ts b/sim/visuals/neopixel.ts index 6e3ff3a2..68b2916d 100644 --- a/sim/visuals/neopixel.ts +++ b/sim/visuals/neopixel.ts @@ -128,7 +128,7 @@ namespace pxsim.visuals { this.canvas.appendChild(pixel.el); } let color = colors[i]; - pixel.setRgb(color); + pixel.setRgb([color[0], color[1], color[2]]); } //show the canvas if it's hidden