TypeError: responseBuffer not iterable
Opened this issue · 0 comments
scpa1055 commented
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.