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

AnalogWrite error #43

Open
jadonk opened this issue Apr 25, 2018 · 2 comments
Open

AnalogWrite error #43

jadonk opened this issue Apr 25, 2018 · 2 comments
Assignees

Comments

@jadonk
Copy link
Member

jadonk commented Apr 25, 2018

From @el-j on December 13, 2017 16:11

i use the pocketbeagle board.

and set pin p2_1 to analogwrite

b.pinMode(pin, b.ANALOG_OUTPUT, );
b.analogWrite(pin, 1, 2000, printJSON)

sadly it ends in this error:

{"err":"error updating PWM freq and value: undefined, Error: ENOENT: no such file or directory, open 'undefined/period'"}

same error in the playground.
i really need analog write. do you have any suggestions how i can use it?

Copied from original issue: jadonk#158

@jadonk
Copy link
Member Author

jadonk commented Apr 25, 2018

This is going to require a kernel update as I've got the other fixes in. I believe @RobertCNelson will do the kernel update soon. See jadonk#156.

@jadonk
Copy link
Member Author

jadonk commented Apr 25, 2018

Almost there. Still have the udev issue jadonk#161.

vaishnavachath referenced this issue in jadonk/bonescript Jun 8, 2018
#161
proposed solution:using async.js (until method) try accessing(for a maximum 10 times) until no EACCES error is thrown,
works well after 5 tries,when tested on:  Linux beaglebone 4.9.82-ti-r102,
BeagleBoard.org Debian Image 2018-03-05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants