File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ LIB_SRC_C += \
169
169
endif
170
170
171
171
DRIVERS_SRC_C = $(addprefix drivers/,\
172
+ dht/dht.c \
172
173
)
173
174
174
175
OBJ_MP =
Original file line number Diff line number Diff line change 33
33
34
34
#include "py/runtime.h"
35
35
#include "py/mperrno.h"
36
+ #include "drivers/dht/dht.h"
36
37
37
38
STATIC mp_obj_t esp_flash_read (mp_obj_t offset_in , mp_obj_t buf_in ) {
38
39
mp_int_t offset = mp_obj_get_int (offset_in );
@@ -86,6 +87,8 @@ STATIC const mp_rom_map_elem_t esp_module_globals_table[] = {
86
87
{ MP_ROM_QSTR (MP_QSTR_flash_erase ), MP_ROM_PTR (& esp_flash_erase_obj ) },
87
88
{ MP_ROM_QSTR (MP_QSTR_flash_size ), MP_ROM_PTR (& esp_flash_size_obj ) },
88
89
{ MP_ROM_QSTR (MP_QSTR_flash_user_start ), MP_ROM_PTR (& esp_flash_user_start_obj ) },
90
+
91
+ { MP_ROM_QSTR (MP_QSTR_dht_readinto ), MP_ROM_PTR (& dht_readinto_obj ) },
89
92
};
90
93
91
94
STATIC MP_DEFINE_CONST_DICT (esp_module_globals , esp_module_globals_table );
Original file line number Diff line number Diff line change
1
+ ../ ../ esp8266 / scripts / dht .py
Original file line number Diff line number Diff line change 34
34
35
35
extern ringbuf_t stdin_ringbuf ;
36
36
37
+ // TODO implement me
38
+ #define disable_irq () 0
39
+ #define enable_irq (irq_state ) (void)(irq_state)
40
+
37
41
uint32_t mp_hal_ticks_us (void );
38
42
__attribute__((always_inline )) static inline uint32_t mp_hal_ticks_cpu (void ) {
39
43
uint32_t ccount ;
You can’t perform that action at this time.
0 commit comments