I am playing with GPIO and digitalRead in bonescript. I noticed that although digitalRead is fairly fast the callback function takes a while. I am asking the group if I should wait for the callback to be triggered or just calling digitalRead is enough!.Thanks
--
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.
For more options, visit https://groups.google.com/d/optout.
The function digitalRead returns the value of the pin does it not? Basically what I ask is, if reading the return value of the digitalRead is enough, of should I capture the value of the pin via a callback function.
I am writing a small program where I interchange the mode of a pin as input and output. I am having difficulties doing that. I am a newbie in javascript, but I am wondering if that is possible at all.
Thanks in advance
> You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/ro7_iOAKamM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
The function digitalRead returns the value of the pin does it not?
Basically what I ask is, if reading the return value of the digitalRead is enough, of should I capture the value of the pin via a callback function.
I am writing a small program where I interchange the mode of a pin as input and output. I am having difficulties doing that. I am a newbie in javascript, but I am wondering if that is possible at all.
Thanks in advance
or by using pin(s) the PRU's can switch modes for fast. For something like say a buffer<->external memory. This way would also be far more complex, but should be vastly faster than using universal-io.
First of all thank you very much for your valuable input. I think that your suggested method using the PRUs is what I need. In my application I need high speed data transfers using the gpios. I have to read/write a nand flash chip that are several Gbits of memory. For the same reason I need to utilize 8 pins as bidirectional input and output ( most nand flash chips use 8 pins for both address,command and data transfer). Now I just have to understand how PRUs work...:) I will check the net but if you have any tutorials on this please do tell. Again thank you very much.