pwm: https://github.com/wphermans/Bonejs/blob/master/documentation/pwm-readme.md and devmem: https://github.com/wphermans/Bonejs/blob/master/documentation/devmem-readme.md
Added. Both are very similar to using each from the cmdline. Personally, I think the devmem wrapper is very cool, but I'm not exactly sure how useful it would, or could be in a production environment. As stated in the last post. the devmem example twiddles the GPIO registers for the USR LEDs. Using GPIO_DATAOUT directly rather than GPIO_SETDATAOUT, and GPIO_CLEARDATAOUT. The result in my opinion while achieving the same end result, it more inline with low level micro-controller development C code. Thus perhaps easier for someone coming from a bare metal environment to grasp - Initially. Anyway, have at it, and have fun. On Tue, Jul 26, 2016 at 11:33 PM, William Hermans <[email protected]> wrote: > Oh, and right. The Cylon blink pattern uses ~5-6% CPU. Which is not too > bad for a Nodejs app. I'll have to compare that with a C mmap() / /dev/mem > implementation, and see how it stacks up. > > On Tuesday, July 26, 2016 at 11:31:09 PM UTC-7, William Hermans wrote: >> >> >> I'll be adding a new wrapper file for devmem2.c for those of you who >> might be interested. I'm still skeptical whether this is very useful or >> not. But I've written an example that "toggles" the USR LEDs in a Cylon >> like pattern. I think at minimum that it could be used as a learning tool - >> Of how one can access ( read, and write ) to GPIO registers. >> > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/2b6850e2-0b29-42bb-ae64-12ac3d0c6f78%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/2b6850e2-0b29-42bb-ae64-12ac3d0c6f78%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORpTUBwckg20Q7CRcuLNMW6TQteAhtG9fghE_W2jkDTgSQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
