Skip to content
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. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: responseBuffer not iterable #8

Open
scpa1055 opened this issue Jun 16, 2019 · 0 comments
Open

TypeError: responseBuffer not iterable #8

scpa1055 opened this issue Jun 16, 2019 · 0 comments

Comments

@scpa1055
Copy link

I am getting this Error in a loop

TypeError: responseBuffer is not iterable at spi.transfer (/home/pi/Documents/brickPi/node_modules/brickpi3/index.js:288:41)

trying to run following code:

const brickpi3 = require('brickpi3');

(async () => {
    try {
        let BP = new brickpi3.BrickPi3();
        
        //Make sure to stop and free all motors and sensors when the programm exits
        brickpi3.utils.resetAllWhenFinished(BP);
        
        let motor = brickpi3.utils.getMotor(BP,BP.PORT_A);
        motor.setPosition(360);
    } catch (err) {
        console.log(err);        
    }
})();

the program executes the rotation but stucks in the Error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant