[apps/code] Added File category to python toolbox

This commit is contained in:
M4x1m3
2020-07-06 11:56:11 +02:00
parent 646088e429
commit 73688343a0
15 changed files with 159 additions and 1 deletions

View File

@@ -298,6 +298,10 @@ STATIC void file_attr(mp_obj_t self_in, qstr attribute, mp_obj_t *destination) {
destination[0] = (mp_obj_t) MP_ROM_PTR(&file_readable_obj);
destination[1] = self_in;
break;
case MP_QSTR_writable:
destination[0] = (mp_obj_t) MP_ROM_PTR(&file_writable_obj);
destination[1] = self_in;
break;
case MP_QSTR_read:
destination[0] = (mp_obj_t) MP_ROM_PTR(&file_read_obj);
destination[1] = self_in;