79589476

Date: 2025-04-23 20:56:05
Score: 1.5
Natty:
Report link

I ran into this same issue and found a related GitHub issue on the esp-hal repo which led me to this documentation update.

Your solution was very close, the only thing missing was a call to enable_input():

    let mut od_for_dht22_in = Output::new(peripherals.GPIO4, esp_hal::gpio::Level::High, od_config)
        .into_flex();
    od_for_dht22_in.enable_input(true);
Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: shaun m