pimoroni-pico/micropython/modules/breakout_pmw3901/breakout_pmw3901.h

26 lines
1.4 KiB
C
Raw Normal View History

// Include MicroPython API.
#include "py/runtime.h"
#include "py/objstr.h"
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);
/***** 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);
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);
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);