[mpy/ulab] Added support of from and to bytes array methods

This commit is contained in:
Laury
2021-09-28 20:48:34 +02:00
parent 56f735e302
commit f9a123cc08
4 changed files with 17 additions and 12 deletions

View File

@@ -223,7 +223,7 @@
#endif
#ifndef NDARRAY_HAS_TOBYTES
#define NDARRAY_HAS_TOBYTES (0)
#define NDARRAY_HAS_TOBYTES (1)
#endif
#ifndef NDARRAY_HAS_TRANSPOSE
@@ -264,7 +264,7 @@
// frombuffer adds 600 bytes to the firmware
#ifndef ULAB_NUMPY_HAS_FROMBUFFER
#define ULAB_NUMPY_HAS_FROMBUFFER (0)
#define ULAB_NUMPY_HAS_FROMBUFFER (1)
#endif
// functions that create an array

View File

@@ -55,7 +55,7 @@
#define MICROPY_PY_ASYNC_AWAIT (0)
// Whether to support bytearray object
#define MICROPY_PY_BUILTINS_BYTEARRAY (0)
#define MICROPY_PY_BUILTINS_BYTEARRAY (1)
// Whether to support frozenset object
#define MICROPY_PY_BUILTINS_FROZENSET (1)