It's my mistakes. 1.I want to measure temperature from DS18B20,but I don't confirm the capable of the pin - P0.05.Because it's Analog ,but DS18B20 is Digital. 2.I set the P0.05 like thislink text.But I read value of 0 all the time.
It's my mistakes. 1.I want to measure temperature from DS18B20,but I don't confirm the capable of the pin - P0.05.Because it's Analog ,but DS18B20 is Digital. 2.I set the P0.05 like thislink text.But I read value of 0 all the time.
DS18B20 can be read by 1-wire protocol. What I think you are doing is... just reading state of the pin? I suggest you to familiarize yourself how digital interfaces work, because it is not something that you connect and it just works.
Also, nrf5x does not have hardware 1-wire, it has to be software-bitbanged.
Think you ,I have found the reason of my question. Because I configured gpio_pin_drive by NRF_GPIO_PIN_S0D1, when I revise it to NRF_GPIO_PIN_S0S1,It 's formal Now!
Think you ,I have found the reason of my question. Because I configured gpio_pin_drive by NRF_GPIO_PIN_S0D1, when I revise it to NRF_GPIO_PIN_S0S1,It 's formal Now!