Announcement

Collapse
No announcement yet.

analogue_8 / INPUT trouble

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

  • analogue_8 / INPUT trouble

    I found out that if i set IO1 to analogue_8 and then I set IO2 to INPUT, then if i pin_Read(IO1) IO1 is not longer analogue but return 0/1 logical value , is it intended ? If yes, does it mean that I have to set the mode every time I want to read each different input pins ?

    pin_Set( ANALOGUE_8 , IO1 );pin_Set( INPUT , IO2 );


    edit : if I set IO2 before IO1 then it seems to keep the mode setting

  • #2


    Oh dear

    It looks like setting IO2 to input or output will make IO1 digital (or turn off analogue, if you like)

    If you set IO2 first then you should be OK, or do you need to change things as your program progresses?
    Mark

    Comment


    • #3


      That is indeed true, setting IO2 first resolved my problem but maybe this should be fixed in a future update of the firmware ^^

      Comment


      • #4


        but maybe this should be fixed in a future update of the firmware
        Certainly, it has been put on the to be fixed list
        Mark

        Comment

        Working...
        X