This content has been marked as final. Show 2 replies
I changed the gpio from sysfs to memory mapped io.
mraa_result_t mraa_gpio_use_mmaped ( mraa_gpio_context dev, mraa_boolean_t mmap )
It's actually speed up the mraa_gpio_wirte & mraa_gpio_read and meet the requirement for ds18b20.
It's need to tune the delay when searching with the sensor.
Thanks a lot,
Its' a great help!!