Commit Graph

18 Commits

Author SHA1 Message Date
Léa Saviot
a9f4da92c0 [code/python] Fixed the Kandinsky module in Python.
User can draw on the 320*220 drawing screen.

Change-Id: I25034b05f21aacc35608358fdb7a4d9924dd22e8
2017-11-21 17:12:38 +01:00
Léa Saviot
b73170b77b [code] Print errors in the Python console.
Change-Id: If3a096ee46105229b6c4c77906826e78666cdc11
2017-11-17 14:05:23 +01:00
Léa Saviot
5cc9aa53f2 [python] Fixed underscore missing.
Change-Id: I58fb379c9ad070c15fb4d3487baa42f861c40b25
2017-11-17 14:05:23 +01:00
Romain Goyet
024067d8a8 Python: Use MPZ 2017-11-17 12:00:35 +01:00
Léa Saviot
5de4b5cd67 [code] Each script has a name, stored in the accordeon buffer.
A script can now be imported in the console.
Moved all the MicroPython functions to python/port files.

Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7
2017-11-17 11:59:50 +01:00
Romain Goyet
9fa5ac0acf [python] Use the extended math functions 2017-11-17 11:59:49 +01:00
Romain Goyet
440813bdc3 [python] Switch to using doubles 2017-11-17 11:59:49 +01:00
Romain Goyet
247ea217fa [python] Enable the cmath module 2017-11-17 11:59:49 +01:00
Romain Goyet
2283736dfe [python] Enable the math module 2017-11-17 11:59:49 +01:00
Ian Abbott
9a99af88aa [python] Fix type of n_args parameter of mp_builtin_open()
The n_args parameter of mp_builtin_open() has type size_t in
"python/src/py/builtin.h", and type uint in "python/port/port.c".
Change it to size_t.
2017-09-20 13:34:47 +02:00
Émilie Feral
52f5858ffd [python][apps/code] Enable interrupting python execution
Change-Id: Iadf7038f79f0289ce20d7ded42f8fe70894f0c0a
2017-08-28 13:30:46 +02:00
Émilie Feral
e0252c7751 [python] Fix garbage collector
Change-Id: I529ff93e7f8841574ff24cb1b6461aa48039ab61
2017-08-25 11:20:49 +02:00
Émilie Feral
818c56bd45 [python] Enable float
Change-Id: I94111dd821fb3a9ef1e22ae5133c3a48285c52d5
2017-08-25 11:20:49 +02:00
Émilie Feral
adff9d1ef0 [python] garbage collector does not print anything
Change-Id: I7da630ea530424878b8ca1f35117fdac67ab574c
2017-08-25 11:20:48 +02:00
Émilie Feral
b50296d9c2 [apps/code] Repare print() in micropython
Change-Id: I43c46748b15d83e071c7b7f1e8448384ce5ad77f
2017-08-25 11:20:48 +02:00
Romain Goyet
30471ede35 [apps] The code app runs Python code
Change-Id: I6034adeb368db2c5d3b64b16f8ad512750cd3bc0
2017-08-09 15:58:29 +02:00
Émilie Feral
66275c29ab [python] Fix bug in mpconfigport
Change-Id: If020d660f9ac67a94731cf1f77986697826ae624
2017-08-08 17:05:33 +02:00
Romain Goyet
16584c5a88 [python] Initial import of MicroPython 1.9.1
Change-Id: I1a8bafe720fb865f9418fc1e50de1184312e1653
2017-08-04 17:56:24 +02:00