jeffa@beaglebone:~$ cat /etc/dogtagBeagleBoard.org Debian Image 2017-03-19jeffa@beaglebone:~$ uname -aLinux beaglebone 4.4.54-ti-r93 #1 SMP Fri Mar 17 13:08:22 UTC 2017 armv7l GNU/Linuxjeffa@beaglebone:~$
while (true) { b.digitalWrite(sData, b.LOW); b.digitalWrite(sClock, b.LOW); b.digitalWrite(sLatch, b.LOW); b.digitalWrite(sClear, b.LOW); b.digitalWrite(sData, b.HIGH); b.digitalWrite(sClock, b.HIGH); b.digitalWrite(sLatch, b.HIGH); b.digitalWrite(sClear, b.HIGH);}var isShiftOutSuccessful = false;
// [...]
// b.shiftOut(sData, sClock, b.MSBFIRST, segments[digit], doLatch); isShiftOutSuccessful = b.shiftOut(sData, sClock, b.MSBFIRST, segments[digit], doLatch);
Could not open file: /usr/local/lib/node_modules/bonescript/src/index.js
The file could not be found on the file system.jeffa@beaglebone:~$ ll /usr/local/lib/node_modules/bonescript/src/index.js-rw-r--r-- 1 debian debian 19675 Mar 1 08:41 /usr/local/lib/node_modules/bonescript/src/index.jsjeffa@beaglebone:~$
The shiftOut.js is not working for me. To verify that I hooked up the pins correctly I made a quick test program to toggle the four lines. Yup square wave on all four.
In the cloud9 ide I'm working on the bonescript shiftout on a BBB
The shiftOut.js is not working for me.
jeffa@beaglebone:~$ cat /etc/dogtagBeagleBoard.org Debian Image 2017-07-01jeffa@beaglebone:~$ uname -aLinux beaglebone 4.4.68-ti-r111 #1 SMP Wed Jun 28 10:06:34 UTC 2017 armv7l GNU/Linuxjeffa@beaglebone:~$In the cloud9 ide I'm working on the bonescript shiftout on a BBB
I decide to attempt to debug step in to the shiftOut.js however I get an errorCould not open file: /usr/local/lib/node_modules/bonescript/src/index.jsThe file could not be found on the file system.
// read in the BoneScript library//var b = require('bonescript');var b = require('/usr/local/lib/node_modules/bonescript/src/bonescript.js');
/usr/local/lib/node_modules/bonescript/src/bonescript.js:17 var head = document.getElementsByTagName('head')[0]; ^
ReferenceError: document is not defined at /usr/local/lib/node_modules/bonescript/src/bonescript.js:17:16 at Object.<anonymous> (/usr/local/lib/node_modules/bonescript/src/bonescript.js:24:2) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (/var/lib/cloud9/jshiftout.js:8:9) at Module._compile (module.js:409:26)