Start a new topic

GPIO page change ?

What im trying to is to change to page 2 when there is input on pio0. Seems simple but i cant get it to work.


I tryed input binding mode

cfgpio 0, 1, b0


b0 toch press event

page 1

then give IO_0 +5v nothing happens ?


Next try, pull up input mode

cfgpio 1,0,0


so when IO_1 is high (+5v) go to page 1

if(pio1==1)

{

  page 2

}

Nothing happens. Am i missing something ?



HMI
(6.75 KB)

"What im trying to is to change to page 2" edit > page 1

 

This Forum Closed Nov 15, 2017

New forum opened Sep 2017


Use new forum