@robert-hh thank you, I used pin.value(x) and it worked, I want to simulate an oscillation using to pins, first I will put the first pin to 1 and the second pin to 0, after a time I will interchange the values, I don´t know if this is the right way, and I don´t know which lopy pins can be better for this purpose.