--
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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/2b6850e2-0b29-42bb-ae64-12ac3d0c6f78%40googlegroups.com.
Granted, I do agree. That discussing low level micro-controller C code, when describing Javascript is a bit odd. But in reality, the heavy lifting is done in C, while Javascript just wraps the executable, and making it perhaps easier to use ?Quite honestly, a couple of years ago I could not see myself doing something of this nature from Javascript, In fact, I'm still somewhat of a C "purist". But I do see a lot of good in Javascript, and mixing implementations with C to make life easier.
--On Thu, Jul 28, 2016 at 9:14 PM, William Hermans <yyr...@gmail.com> wrote:Anyway, have at it, and have fun.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.On Tue, Jul 26, 2016 at 11:33 PM, William Hermans <yyr...@gmail.com> 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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/2b6850e2-0b29-42bb-ae64-12ac3d0c6f78%40googlegroups.com.
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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORqhGVi9VhxNuTNy6MORk2Z7kPc7Ev6wgOYoBDWwDZHMtw%40mail.gmail.com.
I still "think" in C, but JavaScript really can be rather handy. As much as people seem to want to get rid of curly braces, I still appreciate them over making whitespace meaningful. Besides, everyone has a JavaScript interpreter readily at their disposal almost without exception.