We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c6701a + 06268a4 commit 8694f89Copy full SHA for 8694f89
examples/peripherals/rmt/onewire/main/onewire_example_main.c
@@ -21,6 +21,9 @@ void app_main(void)
21
onewire_bus_handle_t bus;
22
onewire_bus_config_t bus_config = {
23
.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
+ }
27
};
28
onewire_bus_rmt_config_t rmt_config = {
29
.max_rx_bytes = 10, // 1byte ROM command + 8byte ROM number + 1byte device command
0 commit comments