beagleboard / bonescript

Scripting tools for the BeagleBoard and BeagleBone
http://beagleboard.org
MIT License
32 stars 9 forks source link

AnalogWrite error #43

Open jadonk opened 6 years ago

jadonk commented 6 years ago

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/bonescript#158

jadonk commented 6 years ago

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 https://github.com/jadonk/bonescript/issues/156.

jadonk commented 6 years ago

Almost there. Still have the udev issue https://github.com/jadonk/bonescript/issues/161.