diff options
| author | robert-hh <robert@hammelrath.com> | 2022-10-27 17:12:45 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-11-09 15:58:39 +1100 |
| commit | eefd946e60aba3ac61c7bfbd0272d07be289e3f3 (patch) | |
| tree | 262cc304015d5d42e0a77b0d8d6e813ca1eabea8 /ports/esp32/modmachine.c | |
| parent | a495eb432feb09d14fca02b49ff3f9ccd504a12b (diff) | |
esp32/modmachine: Move dht_readinto() to the machine module.
Diffstat (limited to 'ports/esp32/modmachine.c')
| -rw-r--r-- | ports/esp32/modmachine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/esp32/modmachine.c b/ports/esp32/modmachine.c index e24afd040..624e4d320 100644 --- a/ports/esp32/modmachine.c +++ b/ports/esp32/modmachine.c @@ -49,6 +49,7 @@ #include "py/obj.h" #include "py/runtime.h" #include "shared/runtime/pyexec.h" +#include "drivers/dht/dht.h" #include "extmod/machine_bitstream.h" #include "extmod/machine_mem.h" #include "extmod/machine_signal.h" @@ -295,6 +296,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { #if MICROPY_PY_MACHINE_PULSE { MP_ROM_QSTR(MP_QSTR_time_pulse_us), MP_ROM_PTR(&machine_time_pulse_us_obj) }, #endif + { MP_ROM_QSTR(MP_QSTR_dht_readinto), MP_ROM_PTR(&dht_readinto_obj) }, { MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&machine_timer_type) }, { MP_ROM_QSTR(MP_QSTR_WDT), MP_ROM_PTR(&machine_wdt_type) }, |
