Guest User

Untitled

a guest
Oct 19th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. /home/pi/PiClient/node_modules/rpi-gpio/rpi-gpio.js:358
  2. return currentPins[channel] + '';
  3. ^
  4.  
  5. TypeError: Cannot read property '7' of undefined
  6. at getPinRpi (/home/pi/PiClient/node_modules/rpi-gpio/rpi-gpio.js:358:27)
  7. at Gpio.read.input (/home/pi/PiClient/node_modules/rpi-gpio/rpi-gpio.js:266:19)
  8. at Object.<anonymous> (/home/pi/PiClient/test.js:5:6)
  9. at Module._compile (module.js:624:30)
  10. at Object.Module._extensions..js (module.js:635:10)
  11. at Module.load (module.js:545:32)
  12. at tryModuleLoad (module.js:508:12)
  13. at Function.Module._load (module.js:500:3)
  14. at Function.Module.runMain (module.js:665:10)
  15. at startup (bootstrap_node.js:187:16)
  16.  
  17. var gpio = require('rpi-gpio');
  18. gpio.(7, gpio.DIR_IN);
  19. gpio.read(7, function (err, val) {
  20. console.log(err, val);
  21. });
Add Comment
Please, Sign In to add comment