Skip to content

Elegant way of determining outputs? #2

Closed

Description

@antonvh

In the boostc lib there was a property OUTPUT_A, which would return 'outA' on an Ev3 but the literal /dev path on a Brickpi, something with TTY. What is an elegant way of filling this property on ev3dev?

Activity

  1. rhempel commented on Oct 6, 2015

    @rhempel
    Member

    I'm not sure - what I do in my sample code is m = Motor('outA') and it "just works". You can always get the full path of the device like this print( m.port_name )

  2. antonvh commented on Oct 7, 2015

    @antonvh
    ContributorAuthor

    I use this now, which works fine cross platform:
    m = Motor(name="motor0")

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions