Numworks Epsilon  1.4.1
Graphing Calculator Operating System
modkandinsky.c File Reference
#include "py/obj.h"
#include "py/mphal.h"
#include "modkandinsky.h"

Go to the source code of this file.

Functions

STATIC MP_DEFINE_CONST_FUN_OBJ_3 (kandinsky_color_obj, kandinsky_color)
 
STATIC MP_DEFINE_CONST_FUN_OBJ_2 (kandinsky_get_pixel_obj, kandinsky_get_pixel)
 
STATIC MP_DEFINE_CONST_FUN_OBJ_3 (kandinsky_set_pixel_obj, kandinsky_set_pixel)
 
STATIC MP_DEFINE_CONST_FUN_OBJ_3 (kandinsky_draw_string_obj, kandinsky_draw_string)
 
STATIC MP_DEFINE_CONST_DICT (kandinsky_module_globals, kandinsky_module_globals_table)
 

Variables

STATIC const mp_rom_map_elem_t kandinsky_module_globals_table []
 
const mp_obj_module_t kandinsky_module
 

Function Documentation

◆ MP_DEFINE_CONST_DICT()

STATIC MP_DEFINE_CONST_DICT ( kandinsky_module_globals  ,
kandinsky_module_globals_table   
)

◆ MP_DEFINE_CONST_FUN_OBJ_2()

STATIC MP_DEFINE_CONST_FUN_OBJ_2 ( kandinsky_get_pixel_obj  ,
kandinsky_get_pixel   
)

◆ MP_DEFINE_CONST_FUN_OBJ_3() [1/3]

STATIC MP_DEFINE_CONST_FUN_OBJ_3 ( kandinsky_color_obj  ,
kandinsky_color   
)

◆ MP_DEFINE_CONST_FUN_OBJ_3() [2/3]

STATIC MP_DEFINE_CONST_FUN_OBJ_3 ( kandinsky_set_pixel_obj  ,
kandinsky_set_pixel   
)

◆ MP_DEFINE_CONST_FUN_OBJ_3() [3/3]

STATIC MP_DEFINE_CONST_FUN_OBJ_3 ( kandinsky_draw_string_obj  ,
kandinsky_draw_string   
)

Variable Documentation

◆ kandinsky_module

const mp_obj_module_t kandinsky_module
Initial value:
= {
.base = { &mp_type_module },
.globals = (mp_obj_dict_t*)&kandinsky_module_globals,
}
const mp_obj_type_t mp_type_module
Definition: objmodule.c:94

Definition at line 20 of file modkandinsky.c.

◆ kandinsky_module_globals_table

STATIC const mp_rom_map_elem_t kandinsky_module_globals_table[]
Initial value:
= {
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_kandinsky) },
{ MP_ROM_QSTR(MP_QSTR_color), (mp_obj_t)&kandinsky_color_obj },
{ MP_ROM_QSTR(MP_QSTR_get_pixel), (mp_obj_t)&kandinsky_get_pixel_obj },
{ MP_ROM_QSTR(MP_QSTR_set_pixel), (mp_obj_t)&kandinsky_set_pixel_obj },
{ MP_ROM_QSTR(MP_QSTR_draw_string), (mp_obj_t)&kandinsky_draw_string_obj },
}
#define MP_ROM_QSTR(q)
Definition: obj.h:241
uint64_t mp_obj_t
Definition: obj.h:39

Definition at line 10 of file modkandinsky.c.