examples/embedding-full: Enable os.uname().

Signed-off-by: Christian Walther <cwalther@gmx.ch>
pull/11430/head
Christian Walther 2023-05-03 22:51:59 +02:00
rodzic 605493d508
commit 124b2dbfe0
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -30,6 +30,7 @@ static const char *example_2 =
"help(sys)\n"
"import os\n"
"help(os)\n"
"print('os.uname():', os.uname())\n"
"import random\n"
"help(random)\n"
"import time\n"

Wyświetl plik

@ -15,6 +15,9 @@
#define MICROPY_PY_GC (1)
#define MICROPY_PY_SYS_PLATFORM "embedded"
#define MICROPY_PY_OS_UNAME (1)
#define MICROPY_HW_BOARD_NAME "embedded"
#define MICROPY_HW_MCU_NAME "C"
// Requires shared/readline/readline.h, don't bother as we have no input.
#define MICROPY_PY_BUILTINS_INPUT (0)