Open abritinthebay opened 9 years ago
@abritinthebay thanks for reporting this. Can you post your exact code here or in a gist?
I sadly don't have the Camera code anymore (it was at the Node Summit hackathon on Day Zero and I switched to trying to get audio to work rather than the camera). But it was literally me doing the following with npx
- and any attempt to access the camera with the library loaded will kill Camera communication (tho the neopixels would work fine).
var Npx = require("npx");
var npx = new Npx(150);
var colors = [
"#00247D",
"#00247D",
"#00247D",
"#00247D",
"#00247D",
"#00247D",
"#14CF2B",
"#14CF2B",
"#14CF2B",
"#14CF2B",
"#14CF2B",
"#14CF2B",
"#FFFFFF",
"#FFFFFF",
"#FFFFFF",
"#FFFFFF",
"#FFFFFF",
"#FFFFFF"
];
colors.forEach(function(color, index, colors) {
var animation = npx.newAnimation(1, 1);
var pattern = colors.slice(index).concat(colors.slice(0, index));
// Set patten on animation
animation.setPattern(pattern);
npx.enqueue(animation, 1);
}, this);
npx.loop();
When trying to use both the Camera will not respond - it gives a UART error. Neopixels work fine though. Even just requiring the library seems to trigger it.