@@ -349,71 +349,12 @@ const mp_obj_property_t protomatter_protomatter_height_obj = {
349349 (mp_obj_t )& mp_const_none_obj },
350350};
351351
352- //| .. attribute:: bytes_per_cell
353- //|
354- //| The bytes_per_cell of the display, in pixels. Always equal to 1.
355- //|
356- STATIC mp_obj_t protomatter_protomatter_get_bytes_per_cell (mp_obj_t self_in ) {
357- protomatter_protomatter_obj_t * self = (protomatter_protomatter_obj_t * )self_in ;
358- check_for_deinit (self );
359- return MP_OBJ_NEW_SMALL_INT (1 );
360- }
361- MP_DEFINE_CONST_FUN_OBJ_1 (protomatter_protomatter_get_bytes_per_cell_obj , protomatter_protomatter_get_bytes_per_cell );
362-
363- const mp_obj_property_t protomatter_protomatter_bytes_per_cell_obj = {
364- .base .type = & mp_type_property ,
365- .proxy = {(mp_obj_t )& protomatter_protomatter_get_bytes_per_cell_obj ,
366- (mp_obj_t )& mp_const_none_obj ,
367- (mp_obj_t )& mp_const_none_obj },
368- };
369-
370- //| .. attribute:: color_depth
371- //|
372- //| The color_depth of the framebuffer, in bits. Always equal to 16. This
373- //| is different than the constructor's "bit_depth".
374- //|
375- STATIC mp_obj_t protomatter_protomatter_get_color_depth (mp_obj_t self_in ) {
376- protomatter_protomatter_obj_t * self = (protomatter_protomatter_obj_t * )self_in ;
377- check_for_deinit (self );
378- return MP_OBJ_NEW_SMALL_INT (16 );
379- }
380- MP_DEFINE_CONST_FUN_OBJ_1 (protomatter_protomatter_get_color_depth_obj , protomatter_protomatter_get_color_depth );
381-
382- const mp_obj_property_t protomatter_protomatter_color_depth_obj = {
383- .base .type = & mp_type_property ,
384- .proxy = {(mp_obj_t )& protomatter_protomatter_get_color_depth_obj ,
385- (mp_obj_t )& mp_const_none_obj ,
386- (mp_obj_t )& mp_const_none_obj },
387- };
388-
389- //| .. attribute:: native_frames_per_second
390- //|
391- //| The native_frames_per_second of the display. Always equal to 250.
392- //|
393- STATIC mp_obj_t protomatter_protomatter_get_native_frames_per_second (mp_obj_t self_in ) {
394- protomatter_protomatter_obj_t * self = (protomatter_protomatter_obj_t * )self_in ;
395- check_for_deinit (self );
396- return MP_OBJ_NEW_SMALL_INT (250 );
397- }
398- MP_DEFINE_CONST_FUN_OBJ_1 (protomatter_protomatter_get_native_frames_per_second_obj , protomatter_protomatter_get_native_frames_per_second );
399-
400- const mp_obj_property_t protomatter_protomatter_native_frames_per_second_obj = {
401- .base .type = & mp_type_property ,
402- .proxy = {(mp_obj_t )& protomatter_protomatter_get_native_frames_per_second_obj ,
403- (mp_obj_t )& mp_const_none_obj ,
404- (mp_obj_t )& mp_const_none_obj },
405- };
406-
407-
408352STATIC const mp_rom_map_elem_t protomatter_protomatter_locals_dict_table [] = {
409353 { MP_ROM_QSTR (MP_QSTR_deinit ), MP_ROM_PTR (& protomatter_protomatter_deinit_obj ) },
410354 { MP_ROM_QSTR (MP_QSTR_brightness ), MP_ROM_PTR (& protomatter_protomatter_brightness_obj ) },
411355 { MP_ROM_QSTR (MP_QSTR_refresh ), MP_ROM_PTR (& protomatter_protomatter_refresh_obj ) },
412356 { MP_ROM_QSTR (MP_QSTR_width ), MP_ROM_PTR (& protomatter_protomatter_width_obj ) },
413357 { MP_ROM_QSTR (MP_QSTR_height ), MP_ROM_PTR (& protomatter_protomatter_height_obj ) },
414- { MP_ROM_QSTR (MP_QSTR_color_depth ), MP_ROM_PTR (& protomatter_protomatter_color_depth_obj ) },
415- { MP_ROM_QSTR (MP_QSTR_bytes_per_cell ), MP_ROM_PTR (& protomatter_protomatter_bytes_per_cell_obj ) },
416- { MP_ROM_QSTR (MP_QSTR_native_frames_per_second ), MP_ROM_PTR (& protomatter_protomatter_native_frames_per_second_obj ) },
417358};
418359STATIC MP_DEFINE_CONST_DICT (protomatter_protomatter_locals_dict , protomatter_protomatter_locals_dict_table );
419360
0 commit comments