8000 examples/embedding-full: Enable uctypes module. · micropython/micropython@0eb84d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0eb84d3

Browse files
committed
examples/embedding-full: Enable uctypes module.
Signed-off-by: Christian Walther <cwalther@gmx.ch>
1 parent 8a3fe7b commit 0eb84d3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/embedding-full/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ static const char *example_2 =
3838
"print('time.gmtime(736622952) = 2023-05-05T17:29:12Z:', time.gmtime(736622952))\n"
3939
"import math\n"
4040
"help(math)\n"
41+
"import ctypes\n"
42+
"help(ctypes)\n"
4143
"import frozenhello\n"
4244
"help(frozenhello)\n"
4345
"print('frozenhello.hello():', frozenhello.hello())\n"

examples/embedding-full/mpconfigport.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
// Requires MICROPY_EVENT_POLL_HOOK, don't bother as we have no pollable objects.
3535
#define MICROPY_PY_USELECT (0)
3636

37-
// Can be enabled once extmod/moductypes.c is included in the build.
38-
#define MICROPY_PY_UCTYPES (0)
37+
// On by default and works in this configuration, but disable it to avoid a
38+
// linker error if you don't include extmod/moductypes.c in the build.
39+
//#define MICROPY_PY_UCTYPES (0)
3940

4041
// Can be enabled once either shared/runtime/sys_stdio_mphal.c or
4142
// extmod/vfs_posix_file.c is included in the build.

0 commit comments

Comments
 (0)
0