2021-09-13 21:58:11 +01:00
|
|
|
// Include MicroPython API.
|
|
|
|
#include "py/runtime.h"
|
|
|
|
#include "py/objstr.h"
|
|
|
|
|
2022-03-16 17:32:23 +00:00
|
|
|
enum ChipType {
|
|
|
|
PMW3901,
|
|
|
|
PAA5100
|
|
|
|
};
|
|
|
|
|
|
|
|
mp_obj_t make_new(enum ChipType chip, const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args);
|
|
|
|
|
2021-09-13 21:58:11 +01:00
|
|
|
/***** Extern of Class Definition *****/
|
|
|
|
extern const mp_obj_type_t breakout_pmw3901_BreakoutPMW3901_type;
|
|
|
|
|
|
|
|
/***** Extern of Class Methods *****/
|
|
|
|
extern void BreakoutPMW3901_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind);
|
|
|
|
extern mp_obj_t BreakoutPMW3901_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args);
|
2022-03-16 17:32:23 +00:00
|
|
|
extern mp_obj_t BreakoutPAA5100_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args);
|
2021-09-13 21:58:11 +01:00
|
|
|
extern mp_obj_t BreakoutPMW3901___del__(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t BreakoutPMW3901_get_id(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t BreakoutPMW3901_get_revision(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t BreakoutPMW3901_set_rotation(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t BreakoutPMW3901_set_orientation(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t BreakoutPMW3901_get_motion(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t BreakoutPMW3901_get_motion_slow(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t BreakoutPMW3901_frame_capture(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|