Interactive MicroPython read-eval-print-loop See also the micropython library and its README file.
Dependencies: mbed micropython
This program needs the micropython library - see there for Getting Started information.
See the mbed MicroPython wiki for more information.
Diff: main.cpp
- Revision:
- 8:11e2b1ca356a
- Parent:
- 7:5b993fdc8998
- Child:
- 9:195af29eef76
--- a/main.cpp Thu Apr 14 20:58:12 2016 +0000 +++ b/main.cpp Thu Apr 14 22:47:07 2016 +0100 @@ -1,6 +1,13 @@ #include "mbed.h" +extern "C" { +#include "py/runtime.h" +#include "lib/utils/pyexec.h" +} int main() { + mp_init(); + pyexec_friendly_repl(); + mp_deinit(); return 0; }