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

Committer:
Colin Hogben
Date:
2016-04-14
Revision:
8:11e2b1ca356a
Parent:
7:5b993fdc8998
Child:
9:195af29eef76

File content as of revision 8:11e2b1ca356a:

#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;
}