@@ -79,36 +79,36 @@ void common_hal_rgbmatrix_rgbmatrix_reconstruct(rgbmatrix_rgbmatrix_obj_t* self,
79
79
mp_get_index (mp_obj_get_type (self -> framebuffer ), self -> bufinfo .len , MP_OBJ_NEW_SMALL_INT (self -> bufsize - 1 ), false);
80
80
} else {
81
81
_PM_FREE (self -> bufinfo .buf );
82
- _PM_FREE (self -> core .rgbPins );
83
- _PM_FREE (self -> core .addr );
84
- _PM_FREE (self -> core .screenData );
82
+ _PM_FREE (self -> protomatter .rgbPins );
83
+ _PM_FREE (self -> protomatter .addr );
84
+ _PM_FREE (self -> protomatter .screenData );
85
85
86
86
self -> framebuffer = NULL ;
87
87
self -> bufinfo .buf = common_hal_rgbmatrix_allocator_impl (self -> bufsize );
88
88
self -> bufinfo .len = self -> bufsize ;
89
89
self -> bufinfo .typecode = 'H' | MP_OBJ_ARRAY_TYPECODE_FLAG_RW ;
90
90
}
91
91
92
- memset (& self -> core , 0 , sizeof (self -> core ));
93
- ProtomatterStatus stat = _PM_init (& self -> core ,
92
+ memset (& self -> protomatter , 0 , sizeof (self -> protomatter ));
93
+ ProtomatterStatus stat = _PM_init (& self -> protomatter ,
94
94
self -> width , self -> bit_depth ,
95
95
self -> rgb_count /6 , self -> rgb_pins ,
96
96
self -> addr_count , self -> addr_pins ,
97
97
self -> clock_pin , self -> latch_pin , self -> oe_pin ,
98
98
self -> doublebuffer , self -> timer );
99
99
100
100
if (stat == PROTOMATTER_OK ) {
101
- _PM_protoPtr = & self -> core ;
101
+ _PM_protoPtr = & self -> protomatter ;
102
102
common_hal_mcu_disable_interrupts ();
103
103
common_hal_rgbmatrix_timer_enable (self -> timer );
104
- stat = _PM_begin (& self -> core );
104
+ stat = _PM_begin (& self -> protomatter );
105
105
106
106
if (stat == PROTOMATTER_OK ) {
107
- _PM_convert_565 (& self -> core , self -> bufinfo .buf , self -> width );
107
+ _PM_convert_565 (& self -> protomatter , self -> bufinfo .buf , self -> width );
108
108
}
109
109
common_hal_mcu_enable_interrupts ();
110
110
if (stat == PROTOMATTER_OK ) {
111
- _PM_swapbuffer_maybe (& self -> core );
111
+ _PM_swapbuffer_maybe (& self -> protomatter );
112
112
}
113
113
}
114
114
@@ -153,7 +153,7 @@ void common_hal_rgbmatrix_rgbmatrix_deinit(rgbmatrix_rgbmatrix_obj_t* self) {
153
153
self -> timer = 0 ;
154
154
}
155
155
156
- if (_PM_protoPtr == & self -> core ) {
156
+ if (_PM_protoPtr == & self -> protomatter ) {
157
157
_PM_protoPtr = NULL ;
158
158
}
159
159
@@ -163,10 +163,10 @@ void common_hal_rgbmatrix_rgbmatrix_deinit(rgbmatrix_rgbmatrix_obj_t* self) {
163
163
free_pin (& self -> latch_pin );
164
164
free_pin (& self -> oe_pin );
165
165
166
- if (self -> core .rgbPins ) {
167
- _PM_free (& self -> core );
166
+ if (self -> protomatter .rgbPins ) {
167
+ _PM_free (& self -> protomatter );
168
168
}
169
- memset (& self -> core , 0 , sizeof (self -> core ));
169
+ memset (& self -> protomatter , 0 , sizeof (self -> protomatter ));
170
170
171
171
// If it was supervisor-allocated, it is supervisor-freed and the pointer
172
172
// is zeroed, otherwise the pointer is just zeroed
@@ -180,16 +180,16 @@ void common_hal_rgbmatrix_rgbmatrix_deinit(rgbmatrix_rgbmatrix_obj_t* self) {
180
180
181
181
void rgbmatrix_rgbmatrix_collect_ptrs (rgbmatrix_rgbmatrix_obj_t * self ) {
182
182
gc_collect_ptr (self -> framebuffer );
183
- gc_collect_ptr (self -> core .rgbPins );
184
- gc_collect_ptr (self -> core .addr );
185
- gc_collect_ptr (self -> core .screenData );
183
+ gc_collect_ptr (self -> protomatter .rgbPins );
184
+ gc_collect_ptr (self -> protomatter .addr );
185
+ gc_collect_ptr (self -> protomatter .screenData );
186
186
}
187
187
188
188
void common_hal_rgbmatrix_rgbmatrix_set_paused (rgbmatrix_rgbmatrix_obj_t * self , bool paused ) {
189
189
if (paused && !self -> paused ) {
190
- _PM_stop (& self -> core );
190
+ _PM_stop (& self -> protomatter );
191
191
} else if (!paused && self -> paused ) {
192
- _PM_resume (& self -> core );
192
+ _PM_resume (& self -> protomatter );
193
193
}
194
194
self -> paused = paused ;
195
195
}
@@ -199,8 +199,8 @@ bool common_hal_rgbmatrix_rgbmatrix_get_paused(rgbmatrix_rgbmatrix_obj_t* self)
199
199
}
200
200
201
201
void common_hal_rgbmatrix_rgbmatrix_refresh (rgbmatrix_rgbmatrix_obj_t * self ) {
202
- _PM_convert_565 (& self -> core , self -> bufinfo .buf , self -> width );
203
- _PM_swapbuffer_maybe (& self -> core );
202
+ _PM_convert_565 (& self -> protomatter , self -> bufinfo .buf , self -> width );
203
+ _PM_swapbuffer_maybe (& self -> protomatter );
204
204
}
205
205
206
206
int common_hal_rgbmatrix_rgbmatrix_get_width (rgbmatrix_rgbmatrix_obj_t * self ) {
0 commit comments