kopia lustrzana https://github.com/micropython/micropython
examples/embedding-full: Enable os.uname().
Signed-off-by: Christian Walther <cwalther@gmx.ch>pull/11430/head
rodzic
605493d508
commit
124b2dbfe0
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue