On Fri, Jul 29, 2016 at 12:19 AM William Hermans <[email protected]> wrote:

> 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.
>

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.


>
> On Thu, Jul 28, 2016 at 9:14 PM, William Hermans <[email protected]>
> wrote:
>
>> 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/CALHSORqhGVi9VhxNuTNy6MORk2Z7kPc7Ev6wgOYoBDWwDZHMtw%40mail.gmail.com
> <https://groups.google.com/d/msgid/beagleboard/CALHSORqhGVi9VhxNuTNy6MORk2Z7kPc7Ev6wgOYoBDWwDZHMtw%40mail.gmail.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/CA%2BT6QPnQn%2B4TbqnvAX1UwxRWwpj2XiaW3PCtJ15V3fh%3DkSRaRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to