Skip to content

Commit 8694f89

Browse files
committed
Merge branch 'bugfix/onewire_internal_pullup_v5.5' into 'release/v5.5'
fix(rmt): enable internal pull-up resistor for onewire bus (v5.5) See merge request espressif/esp-idf!39930
2 parents 5c6701a + 06268a4 commit 8694f89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/peripherals/rmt/onewire/main/onewire_example_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ void app_main(void)
2121
onewire_bus_handle_t bus;
2222
onewire_bus_config_t bus_config = {
2323
.bus_gpio_num = EXAMPLE_ONEWIRE_BUS_GPIO,
24+
.flags = {
25+
.en_pull_up = true, // enable the internal pull-up resistor in case the external device didn't have one
26+
}
2427
};
2528
onewire_bus_rmt_config_t rmt_config = {
2629
.max_rx_bytes = 10, // 1byte ROM command + 8byte ROM number + 1byte device command

0 commit comments

Comments
 (0)