Not sure what language you are using. But can't you just create the gpio object, do the charging, wait a bit, then delete the object, then create a new gpio object as output?
Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Arduino developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov *I* *f you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime. *- Anonymous *If writing good code requires very little comments, then writing really excellent code requires no comments at all!*- Ken Thompson On Thu, Aug 13, 2015 at 8:25 AM, Atlanta Geek <[email protected]> wrote: > Anyone have any luck connecting pololu QTR-8rc on beaglebone black. Im > trying to build a line follower with a beaglebone black using BlackLib > > The Arduino code that reads the IR signal puts the GPIOs in write mode to > charge capacitors and then switches to read mode and times how long it > takes for the signal to go high. But with black lib I have to create two > objects for the same GPIO to go into OUTPUT mode and then INPUT mode. > Anyway my GPIO never goes high. Anyone have any luck with these IR line > detectors? > > -- > 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 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.
