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.
main.cpp@8:11e2b1ca356a, 2016-04-14 (annotated)
- Committer:
- Colin Hogben
- Date:
- Thu Apr 14 22:47:07 2016 +0100
- Revision:
- 8:11e2b1ca356a
- Parent:
- 7:5b993fdc8998
- Child:
- 9:195af29eef76
Compilable version, stubbed out
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Colin Hogben |
6:54f3d4af42cc | 1 | #include "mbed.h" |
Colin Hogben |
8:11e2b1ca356a | 2 | extern "C" { |
Colin Hogben |
8:11e2b1ca356a | 3 | #include "py/runtime.h" |
Colin Hogben |
8:11e2b1ca356a | 4 | #include "lib/utils/pyexec.h" |
Colin Hogben |
8:11e2b1ca356a | 5 | } |
Colin Hogben |
6:54f3d4af42cc | 6 | |
Colin Hogben |
6:54f3d4af42cc | 7 | int main() |
Colin Hogben |
6:54f3d4af42cc | 8 | { |
Colin Hogben |
8:11e2b1ca356a | 9 | mp_init(); |
Colin Hogben |
8:11e2b1ca356a | 10 | pyexec_friendly_repl(); |
Colin Hogben |
8:11e2b1ca356a | 11 | mp_deinit(); |
Colin Hogben |
6:54f3d4af42cc | 12 | return 0; |
Colin Hogben |
6:54f3d4af42cc | 13 | } |