File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,11 @@ py_obj_t lcd_pix_show(void) {
163
163
return py_const_none ;
164
164
}
165
165
166
+ py_obj_t lcd_print (py_obj_t text ) {
167
+ lcd_print_str (qstr_str (py_obj_get_qstr (text )));
168
+ return py_const_none ;
169
+ }
170
+
166
171
void lcd_init (void ) {
167
172
// set the outputs high
168
173
PYB_LCD_PORT -> BSRRL = PYB_LCD_CS1_PIN ;
@@ -221,6 +226,7 @@ void lcd_init(void) {
221
226
rt_store_attr (m , qstr_from_str_static ("set" ), rt_make_function_2 (lcd_pix_set ));
222
227
rt_store_attr (m , qstr_from_str_static ("reset" ), rt_make_function_2 (lcd_pix_reset ));
223
228
rt_store_attr (m , qstr_from_str_static ("show" ), rt_make_function_0 (lcd_pix_show ));
229
+ rt_store_attr (m , qstr_from_str_static ("text" ), rt_make_function_1 (lcd_print ));
224
230
rt_store_name (qstr_from_str_static ("lcd" ), m );
225
231
}
226
232
You can’t perform that action at this time.
0 commit comments