Rpio.i2cReadRegisterRestart() is not working
Closed this issue · 3 comments
chandic commented
There is no binding function for i2cReadRegisterRestart, binding.i2c_read_reg_rs is undefined in rpio.js
Error:
bh1750, File: bh1750_module.js, Function: readLight, TypeError: bindfunc is not a function
at bindcall3 (/home/pi/Desktop/light-sensor/node_modules/rpio/lib/rpio.js:120:9)
at rpio.i2cReadRegisterRestart (/home/pi/Desktop/light-sensor/node_modules/rpio/lib/rpio.js:715:9)
chandic commented
Still have issues. You have exported the method i2c_read_register_rs from rpio.c but forgot to update the method name in rpio.js which is currently i2c_read_reg_rs.
jperkin commented
Hah thanks, I've fixed this in 2.2.0, can you try that?