-
Notifications
You must be signed in to change notification settings - Fork 0
Error: Unknown mode undefined #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement< 8000 /a>. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
One line is not enough to trace the error. Can you share the rest of your code? |
Update: Code provided in latest comment |
Sorry, something went wrong.
I can't really set it up. When I do |
After reading the raspi-ui documents, it turns out I set the pin wrong. However, I still can't drive the board with the correct one. Here's what I have done:
And my current code: const five = require("johnny-five");
const Raspi = require('raspi-io').RaspiIO;
const HuskyLens = require("./module/huskylens-master/index.js")(five);
const board = new five.Board({
io: new Raspi({
enableSerial: true,
enableI2C: true
})
});
board.on("ready", () => {
console.log('Pie ready!')
const lens = new HuskyLens({
pins: ['P1-10', 'P1-8'],
mode: "FACE_RECOGNITION"
});
lens.on("ready", () => {
console.log("The HuskyLens is connected and ready");
});
lens.on("block", block => {
console.log(block);
});
}) Result:
Expected: Using:
|
@dtex Hello, sorry to bother you. Are you free to review on this? |
Uh oh!
There was an error while loading. Please reload this page.
I'm using Raspberry Pi 4 Model B, with library
raspi-io
. But getting this error. Line 26 of main.js is:The text was updated successfully, but these errors were encountered: