On Wed, Oct 11, 2017 at 8:44 PM, Sai Yamanoor <[email protected]> wrote:
> Oops Sorry. I am not sure if config-pin includes the pin names for
> PocketBeagle. I am trying to play with the GPIOs. For example: GPIO 58. I
> tried both bonescript and Python. It throws an exception.
>
> Here is a code snippet:
>
> GPIO.setup("P2_4", GPIO.OUT)
>
> while True:
>     GPIO.output("P2_4", GPIO.HIGH)
>     time.sleep(0.5)
>     GPIO.output("P2_4", GPIO.LOW)
>     time.sleep(0.5)
>
> My apologies if I am missing something obvious. While I have played with
> other board, I have new to Beaglebone.

Use P2_04....

config-pin -q P2_04
config-pin -l P2_04

BUT... only "config-pin" knows what to do.

Both Jason (Bonescript) and Drew (Adafruit-io) are working on their patchset's..

So with config-pin today do:

config-pin P2_04 gpio_pu ; sleep 0.5 ; config-pin P2_04 gpio_pd ; sleep 0.5

Regards,

-- 
Robert Nelson
https://rcn-ee.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYi8%2Be_LOT3m3v-LaxuZWVSNXQSq-uB7XgQ1aGgZdzhraw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to