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
On Jan 6, 2015 2:44 AM, "William Hermans" <[email protected]> wrote: > > How would you plan on getting the information back from digitalRead if not by using a javascript callback ? > > Also, more information is needed. e.g. what is your program goal ? > > On Mon, Jan 5, 2015 at 2:38 PM, 'Vasilis Iliadis' via BeagleBoard < [email protected]> wrote: >> >> 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 [email protected]. >> >> 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 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 [email protected]. > 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]. For more options, visit https://groups.google.com/d/optout.
