2022-02-16 17:17:33 +00:00
|
|
|
// Include MicroPython API.
|
|
|
|
#include "py/runtime.h"
|
|
|
|
#include "py/objstr.h"
|
|
|
|
|
|
|
|
/***** Extern of Class Definition *****/
|
|
|
|
extern const mp_obj_type_t Badger2040_type;
|
|
|
|
|
|
|
|
/***** Extern of Class Methods *****/
|
|
|
|
extern void Badger2040_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind);
|
|
|
|
extern mp_obj_t Badger2040___del__(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Badger2040_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args);
|
|
|
|
|
2022-02-21 15:19:47 +00:00
|
|
|
extern mp_obj_t Badger2040_is_busy(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Badger2040_update_speed(mp_obj_t self_in, mp_obj_t speed);
|
2022-02-16 17:17:33 +00:00
|
|
|
extern mp_obj_t Badger2040_update(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Badger2040_partial_update(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
|
2022-03-23 00:12:10 +00:00
|
|
|
extern mp_obj_t Badger2040_halt(mp_obj_t self_in);
|
|
|
|
|
2022-02-25 14:49:28 +00:00
|
|
|
extern mp_obj_t Badger2040_invert(mp_obj_t self_in, mp_obj_t invert);
|
2022-02-16 17:17:33 +00:00
|
|
|
extern mp_obj_t Badger2040_led(mp_obj_t self_in, mp_obj_t brightness);
|
2022-02-17 11:17:21 +00:00
|
|
|
extern mp_obj_t Badger2040_font(mp_obj_t self_in, mp_obj_t font);
|
2022-02-16 17:17:33 +00:00
|
|
|
extern mp_obj_t Badger2040_pen(mp_obj_t self_in, mp_obj_t color);
|
|
|
|
extern mp_obj_t Badger2040_thickness(mp_obj_t self_in, mp_obj_t thickness);
|
|
|
|
|
2022-02-17 11:17:21 +00:00
|
|
|
extern mp_obj_t Badger2040_pressed(mp_obj_t self_in, mp_obj_t button);
|
|
|
|
|
2022-02-16 17:17:33 +00:00
|
|
|
extern mp_obj_t Badger2040_clear(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Badger2040_pixel(mp_obj_t self_in, mp_obj_t x, mp_obj_t y);
|
|
|
|
extern mp_obj_t Badger2040_line(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-17 11:17:21 +00:00
|
|
|
extern mp_obj_t Badger2040_rectangle(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
|
2022-02-23 15:24:24 +00:00
|
|
|
extern mp_obj_t Badger2040_image(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Badger2040_icon(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
|
2022-02-18 17:36:20 +00:00
|
|
|
extern mp_obj_t Badger2040_text(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-23 11:10:29 +00:00
|
|
|
extern mp_obj_t Badger2040_glyph(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
|
|
|
|
extern mp_obj_t Badger2040_measure_text(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Badger2040_measure_glyph(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 17:36:20 +00:00
|
|
|
|
2022-03-23 00:12:10 +00:00
|
|
|
extern mp_obj_t Badger2040_command(mp_obj_t self_in, mp_obj_t reg, mp_obj_t data);
|
|
|
|
|
|
|
|
extern mp_obj_t Badger2040_pressed_to_wake(mp_obj_t button);
|
2022-03-25 14:55:08 +00:00
|
|
|
extern mp_obj_t Badger2040_woken_by_button();
|
2022-03-29 20:56:23 +00:00
|
|
|
|
|
|
|
extern mp_obj_t Badger2040_system_speed(mp_obj_t speed);
|