Unable to run bonescript files in Cloud9 on BeagleBone

倖福魔咒の 提交于 2019-12-04 16:28:46

Now I realize there were multiple problems:

First, I should have checked the documentation to get node.js to work. I just assumed alert() was a function when I should have been using console.log(). So once I realized this I was able to run this file in Cloud9:

var hello = "hello world"
console.log(hello);

Second, When I tried to install the libraries (inotify and fibers) using the npm package manager it placed them in the node_modules directory in my working directory:

/home/root/

... not the default Cloud9 root directory as I assumed it would:

/var/lib/cloud9

Third, my pins were already exported, which was fixed by simply restarting the BeagleBone.

Finally, I found that creating a new instance in my home directory with the latest version of bonescript allowed me to run the blinkled.js sample file, as well as this file which tests all analog pins on the BeagleBone from the command line.

You might do a 'git pull' in /var/lib/cloud9 to get an update. One thing I've added is an 'analogRead' function.

i bough beagle bone rev. A4. this kind of error is comming on that also. i have just make new SD card with latest angstrom image, and then after blinky is working properly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!