Skip to content

pinMode fails on PocketBeagle #182

Description

@mzwtjp

Hello.
I am using PocketBeagle.

BeagleBoard.org Debian Image 2018-06-17
bonescript@0.7.0

I am trying gpio operation using BoneScript.
But, I get the following error when I try to set p1_2 gpio pin to output.

$ node -pe "require('bonescript').pinMode('P1_2', 'out')"
info: pinMode: Missing mux name for pin object: {"name":"AIN6","ain":6,"eeprom":73,"scale":4096,"key":"P1_2","ball":{"ZCZ":"A8","BSM":"C9"}}
info: No pinmux for P1_2
false
info: running rc_cleanup()

I tried other names as 'gpio_87', etc. but they also did not work.

Whereas, I have no such problem with config-pin command.

$ config-pin p1_2 output
$ config-pin p1_2 hi
$ config-pin p1_2 lo
...

i.e.
In comparison, using config-pin command on PocketBeagle, I can set p1_2 pin ho/low properly). But using bonescript I cannot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions