Announcement

Collapse
No announcement yet.

pin_Read with variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pin_Read with variable

    Hello,

    I would like to use the pin_Read function with a variable instead of using the usual input name PAXX
    Is it possible to have pin_Read(my_var) where my_var can be written with any PAXX I need ?

    Thanks a lot for your help !

  • #2
    Hi

    If I understand correctly you should just be able to declare a variable and then set the variable to the PAXX you require eg,

    var myPin;
    myPin := PA5;
    pin_Read(myPin);

    Best regards

    Paul

    Comment


    • #3
      So simple ....
      Thanks a lot, that's perfect !

      Comment

      Working...
      X