components/am2301/AM2301.cpp
/**
 * listen to one wire bus.
 * - pin as input with pull-up
 */
listen to one wire bus.
- pin as input with pull-up
listen to one wire bus . - pin as input with pull - up
void AM2301::one_wire_listen()
{
    gpio_set_pull_mode(pin, GPIO_PULLUP_ONLY);
    gpio_set_direction(pin, GPIO_MODE_INPUT);
}
void AM2301 :: one_wire_listen ( ) { gpio_set_pull_mode ( pin , GPIO_PULLUP_ONLY ) ; gpio_set_direction ( pin , GPIO_MODE_INPUT ) ; }
listen to one wire bus.
listen to one wire bus .