components/am2301/AM2301.cpp
/**
 * send one wire bus start pulse.
 * - pin as open drain output
 * - pull bus low to start measurement
 * - low Tbe = typ 1 ms (max 20 ms)
 * - release bus
 */
send one wire bus start pulse.
- pin as open drain output
- pull bus low to start measurement
- low Tbe = typ 1 ms (max 20 ms)
- release bus
send one wire bus start pulse . - pin as open drain output - pull bus low to start measurement - low Tbe = typ 1 ms ( max 20 ms ) - release bus
void AM2301::one_wire_start()
{
    gpio_set_direction(pin, GPIO_MODE_OUTPUT_OD);
    gpio_set_level(pin, 0);
    vTaskDelay(1);
    gpio_set_level(pin, 1);
}
void AM2301 :: one_wire_start ( ) { gpio_set_direction ( pin , GPIO_MODE_OUTPUT_OD ) ; gpio_set_level ( pin , 0 ) ; vTaskDelay ( 1 ) ; gpio_set_level ( pin , 1 ) ; }
send one wire bus start pulse.
send one wire bus start pulse .