Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with GPIO / pinMode #93

Closed
jukkaaakula opened this issue Aug 22, 2014 · 2 comments
Closed

Problem with GPIO / pinMode #93

jukkaaakula opened this issue Aug 22, 2014 · 2 comments

Comments

@jukkaaakula
Copy link

Hi

I use
b.pinMode( outpin[j], b.OUTPUT , 7, 'pullup', 'fast', function (x) {} );

where outpin[j] is e.g. P8_31 or almost whatever.

I get this:

/usr/local/lib/node_modules/bonescript/index.js:161
if(typeof resp.err != 'undefined') {
^
TypeError: Cannot read property 'err' of undefined
at Object.f.pinMode (/usr/local/lib/node_modules/bonescript/index.js:161:19)
at Object.event [as /stream](/home/debian/nodeSofta/requestHandlers.js:287: 19)
at route (/home/debian/nodeSofta/router.js:4:25)
at IncomingMessage. (/home/debian/nodeSofta/server.js:18:13)
at IncomingMessage.EventEmitter.emit (events.js:92:17)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)

Actually even for simpler versions I get the same message. E.g. for

            b.pinMode( outpin[j], b.OUTPUT );

Beaglebone version is 2.4. OS was Debian with node.js 10.*

@adityapatadia
Copy link
Contributor

Try https://github.com/theoctal/octalbonescript It is fork of bonescript with a lot of improvements.

@jadonk
Copy link
Owner

jadonk commented Apr 25, 2018

This issue was moved to beagleboard#29

@jadonk jadonk closed this as completed Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants