examples/embedding-full: Enable uctypes module.

Signed-off-by: Christian Walther <cwalther@gmx.ch>
pull/11430/head
Christian Walther 2023-05-05 23:17:32 +02:00
rodzic 170ba15311
commit e03158d2b9
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -38,6 +38,8 @@ static const char *example_2 =
"print('time.gmtime(736622952) = 2023-05-05T17:29:12Z:', time.gmtime(736622952))\n"
"import math\n"
"help(math)\n"
"import uctypes\n"
"help(uctypes)\n"
"import frozenhello\n"
"help(frozenhello)\n"
"print('frozenhello.hello():', frozenhello.hello())\n"

Wyświetl plik

@ -34,8 +34,9 @@
// Requires MICROPY_EVENT_POLL_HOOK, don't bother as we have no pollable objects.
#define MICROPY_PY_SELECT (0)
// Can be enabled once extmod/moductypes.c is included in the build.
#define MICROPY_PY_UCTYPES (0)
// On by default and works in this configuration, but disable it to avoid a
// linker error if you don't include extmod/moductypes.c in the build.
//#define MICROPY_PY_UCTYPES (0)
// Can be enabled once either shared/runtime/sys_stdio_mphal.c or
// extmod/vfs_posix_file.c is included in the build.