dhylands
Well-known member
I've got the initial port of MicroPython for the Teensy 3.1 working (just the REPL, no I/O - i.e. GPIO/ADC etc)
I made a fork of the micropython repository here:
https://github.com/dhylands/micropython
All of my changes are in the teensy directory, with the exception of an edit to py/misc.h which is required for main.cpp to be a C++ file.
I'm not sure I actually need main.cpp to be C++ anymore, but I'll wait until some I/O ha been added to verify if I can rename it to main.c.
Current compiled .elf size:
I made a fork of the micropython repository here:
https://github.com/dhylands/micropython
All of my changes are in the teensy directory, with the exception of an edit to py/misc.h which is required for main.cpp to be a C++ file.
I'm not sure I actually need main.cpp to be C++ anymore, but I'll wait until some I/O ha been added to verify if I can rename it to main.c.
Code:
Teensy device connected @/dev/ttyACM0 (serial 21973)
Micro Python for Teensy 3.1
Type "help()" for more information.
>>> x = 3
>>> y = 7
>>> x + y
10
>>> print("This is a test")
This is a test
>>> help()
NameError: name 'help' is not defined
>>>
Current compiled .elf size:
Code:
arm-none-eabi-size "micropython.elf"
text data bss dec hex filename
129932 1636 2440 134008 20b78 micropython.elf