input using as output / vice versa

Hello,

I’m figuring out how to contact a 1-wire DS1820 temperature sensor.
I’m using single board computer BL2010. FOr this I need an input that can also act as an output (so both read/write on 1 line)
How to do this?

Thanks
Bas