Menu

DIR Command

Help
MBB
3 days ago
2 days ago
  • Anobium

    Anobium - 3 days ago

    Yes, just use dir port.pin In|Out

    I would use an alias for port.pin.

    But, this is a common practice.

     
  • MBB

    MBB - 3 days ago

    Thanks

     
  • MBB

    MBB - 3 days ago

    I have this in my code:

    define MFIO_Pin PortA.4

    dir PortA.4 In|Out

    When I compile I get this error message:

    Oximeter_5.gcb (68): Error: Invalid pin direction, expected In or Out
    Oximeter_5.gcb (68): Error: Syntax Error

    Did I do what you suggested, correctly?

     
  • Anobium

    Anobium - 3 days ago

    In|Out means In or Out. You cannot use In|Out

     
  • MBB

    MBB - 2 days ago

    I tried dir PortA.4 In OR Out but
    got the same error message.

     
  • Anobium

    Anobium - 2 days ago

    Dir port.pin In

    or on another line

    Dir port.pin Out

     

Log in to post a comment.