Announcement

Collapse
No announcement yet.

analogue_8 / INPUT trouble

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

  • ESPsupport
    replied


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

    Leave a comment:


  • ftokyo
    replied


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

    Leave a comment:


  • ESPsupport
    replied


    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?

    Leave a comment:


  • ftokyo
    started a topic analogue_8 / INPUT trouble

    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
Working...
X