File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 32
32
#include "py/runtime.h"
33
33
#include "py/mperrno.h"
34
34
#include "py/mphal.h"
35
+ #include "drivers/dht/dht.h"
35
36
#include "extmod/machine_bitstream.h"
36
37
#include "extmod/machine_mem.h"
37
38
#include "extmod/machine_signal.h"
@@ -412,6 +413,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
412
413
#if MICROPY_PY_MACHINE_PULSE
413
414
{ MP_ROM_QSTR (MP_QSTR_time_pulse_us ), MP_ROM_PTR (& machine_time_pulse_us_obj ) },
414
415
#endif
416
+ { MP_ROM_QSTR (MP_QSTR_dht_readinto ), MP_ROM_PTR (& dht_readinto_obj ) },
415
417
416
418
{ MP_ROM_QSTR (MP_QSTR_mem8 ), MP_ROM_PTR (& machine_mem8_obj ) },
417
419
{ MP_ROM_QSTR (MP_QSTR_mem16 ), MP_ROM_PTR (& machine_mem16_obj ) },
Original file line number Diff line number Diff line change 30
30
#include "py/runtime.h"
31
31
#include "py/mphal.h"
32
32
#include "shared/runtime/pyexec.h"
33
- #include "drivers/dht/dht.h"
34
33
#include "stm32_it.h"
35
34
#include "irq.h"
36
35
#include "led.h"
@@ -191,9 +190,6 @@ STATIC const mp_rom_map_elem_t pyb_module_globals_table[] = {
191
190
{ MP_ROM_QSTR (MP_QSTR_mount ), MP_ROM_PTR (& mp_vfs_mount_obj ) },
192
191
#endif
193
192
194
- // This function is not intended to be public and may be moved elsewhere
195
- { MP_ROM_QSTR (MP_QSTR_dht_readinto ), MP_ROM_PTR (& dht_readinto_obj ) },
196
-
197
193
{ MP_ROM_QSTR (MP_QSTR_Timer ), MP_ROM_PTR (& pyb_timer_type ) },
198
194
199
195
#if MICROPY_HW_ENABLE_RNG
You can’t perform that action at this time.
0 commit comments