mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Compile for OMV2 only
This commit is contained in:
parent
8854f0a9d5
commit
a44be5d38b
@ -9,6 +9,8 @@
|
||||
#include "py_image.h"
|
||||
#include "mlx90620.h"
|
||||
|
||||
#ifdef OPENMV2
|
||||
|
||||
#define MLX_SLAVE_ADDR (0xC0)
|
||||
#define MLX_EEPROM_ADDR (0xA0)
|
||||
#define OSC_TRIM_OFFSET (0xF7)
|
||||
@ -238,8 +240,15 @@ const mp_obj_module_t mlx_module = {
|
||||
.name = MP_QSTR_mlx,
|
||||
.globals = (mp_obj_t)&globals_dict,
|
||||
};
|
||||
#else
|
||||
const mp_obj_module_t mlx_module = {
|
||||
.base = { &mp_type_module },
|
||||
.name = MP_QSTR_mlx,
|
||||
};
|
||||
|
||||
const mp_obj_module_t *py_mlx90620_init()
|
||||
{
|
||||
return &mlx_module;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user