Romain Goyet
82f0b7183f
[python/turtle] Use micropython_port_interruptible_msleep
2018-11-16 10:17:26 +01:00
Romain Goyet
efaa87d36c
Merge branch 'master' into python_turtle
2018-11-16 09:46:11 +01:00
Romain Goyet
253c183963
[python] Clean the time module
...
- Export micropython_port_should_interrupt and
micropython_port_interruptible_msleep in Emscripten
- Make micropython_port_interruptible_msleep available in a helper
2018-11-16 09:40:53 +01:00
Romain Goyet
d6a2238be6
[python] Clean the Kandinsky's module code
2018-11-15 17:12:01 +01:00
Romain Goyet
a3d6d6ddd6
[ion/timing] Cleanup
2018-11-15 16:19:07 +01:00
Romain Goyet
8fa1558fc4
[python] Small cleanup
2018-11-15 15:12:17 +01:00
Romain Goyet
dbc866d289
[python] Use the proper time module
2018-11-15 14:59:56 +01:00
Romain Goyet
e73033b19c
Merge branch 'master' into utime_module
2018-11-15 14:37:11 +01:00
Romain Goyet
1142fd00a2
[python] Use a custom modtime implementation
...
It only exposes "monotonic" and "sleep" functions, which are the
only part of CPython's time we can actually do at the moment.
2018-11-15 14:18:01 +01:00
Romain Goyet
d7a13ba8fd
Revert to micropython_port_should_interrupt
2018-11-14 16:57:16 +01:00
Léa Saviot
f052bd9088
[python/port] Clean some code
2018-11-13 10:06:23 +01:00
Romain Goyet
5dfefb477a
[python] Rename micropython_port_should_interrupt to micropython_port_vm_hook_loop
2018-11-13 10:06:23 +01:00
Damien Nicolet
24630011b1
[code] keep only CPython equivalent functions in utime module
2018-11-10 00:00:03 +01:00
Damien Nicolet
9b818bd963
[ion] fix sleep functions in emscripten build
2018-11-09 01:36:38 +01:00
Damien Nicolet
f93bf97182
[ion] Sharing millis & micros for blackbox and simulator
2018-11-09 01:30:22 +01:00
Damien Nicolet
c0c0905b84
[ion] millis() and micros() returns uint32_t and are defined in their own header
2018-11-09 01:30:22 +01:00
Damien Nicolet
79bfc7f112
[code] time module
2018-11-09 01:30:22 +01:00
Jean-Baptiste Boric
c89a369a08
[python] Add getters for turtle module
2018-10-30 18:26:13 +01:00
Jean-Baptiste Boric
fcf7cc33cf
[python] Implement turtle.position()
2018-10-30 18:10:25 +01:00
Jean-Baptiste Boric
0c94f44399
[python] Return value for turtle.pensize()
2018-10-30 17:34:13 +01:00
Jean-Baptiste Boric
9e2437047b
[python] Clean up turtle code and samples
2018-10-28 19:15:32 +01:00
Jean-Baptiste Boric
3a7ae27cf7
[python] Fix turtle icon dependency (for real)
2018-10-28 18:32:56 +01:00
Jean-Baptiste Boric
ca589b90f2
[python] Fix turtle icon dependency
2018-10-28 14:20:35 +01:00
Jean-Baptiste Boric
0a05b94b4d
[python] Turtle module improvements
2018-10-28 14:16:00 +01:00
Jean-Baptiste Boric
464c1a5c95
[python] Initial turtle module
2018-10-27 14:24:36 +02:00
Émilie Feral
e45e653619
[python] Fix bug in Micropython when parsing const char * in
...
float/double
This is fixed in Micropython project by commit b768cc6ca8ed6d7430b86dc7ccb9ee2391b3a251
2018-10-02 14:41:23 +02:00
Romain Goyet
b3b29c214c
[python] Don's sort QSTRs before processing them
...
The order matters because of the codepoint2name routine
2018-06-26 14:18:55 +02:00
Romain Goyet
53fbd2367f
[python] Switch MICROPY_QSTR_BYTES_IN_HASH to 2 (default)
2018-06-26 14:18:55 +02:00
Émilie Feral
317e1f0389
[code] Enable interrupting an infinite input() loop when clicking on home
2018-06-12 16:52:12 +02:00
Romain Goyet
217d0ccc10
[python] Enable builtins reversed
2018-06-08 17:26:37 +02:00
Romain Goyet
5008f40a66
[python] Enable builtins filter
2018-06-08 17:26:37 +02:00
Romain Goyet
e1b3e107da
[python] Enable builtins frozenset
2018-06-08 17:26:37 +02:00
Romain Goyet
8acf50b50c
[python] Enable builtins enumerate
2018-06-08 17:26:37 +02:00
Romain Goyet
b67388a9a9
[python] Enable builtins set
2018-06-08 17:26:37 +02:00
Romain Goyet
8094a02e71
[python] Don't compile MICROPY_HELPER_REPL for nothing
2018-06-08 17:26:37 +02:00
Romain Goyet
96846e9396
[python] Clean up the configuration files
2018-06-04 16:10:14 +02:00
Romain Goyet
73250e727a
[python] Update to MicroPython 1.9.4
2018-06-04 16:10:14 +02:00
Romain Goyet
21b5e898c3
Enable the urandom module in mpconfigport.h, not in uPy
...
Otherwise it breaks when upgrading uPy. Faulty commit 4011290 .
2018-04-13 09:39:14 +02:00
Romain Goyet
8aef4d996c
[python] Restore the should_interrupt routine
2018-04-11 10:27:18 +02:00
Romain Goyet
b691d3d6ed
Merge branch 'usb'
2018-04-09 14:48:18 +02:00
Romain Goyet
8745a258d4
Remove un-needed headers
...
This fixes some heavily-parallels build failures
2018-04-09 14:43:35 +02:00
Romain Goyet
55e4c955f4
Upgrade to MicroPython 1.9.3
2018-04-09 14:43:15 +02:00
Léa Saviot
1d21b4ed9e
[python] Remove un-necessary dependencies.
...
Change-Id: Ib3542c364ae8f670372cc848f6b59d7c7364817d
2018-04-09 10:50:51 +02:00
Léa Saviot
704e02f765
[python] Add qstrdefs.generated.h to generated_headers in Makefile.
...
This fixes a compilation bug when building without "-j8".
Change-Id: Ic30d379837ab685843f011c3dba01e3d38d2402a
2018-04-06 14:31:44 +02:00
Romain Goyet
3ad7b941dd
Define and use PYTHON in the build system
2018-02-18 15:21:15 +01:00
Romain Goyet
489b26e813
Re-organize and re-prefix the Makefile variables
2018-02-02 14:30:35 +01:00
Romain Goyet
fd7516f8ac
[python] "input" now displays the provided prompt
2018-02-01 14:10:26 +01:00
Romain Goyet
651d5715e4
[python] Adding mp_hal_input
2018-02-01 14:10:26 +01:00
Émilie Feral
5c23003e50
[apps] Python: Refining random module
2018-01-16 13:19:27 +01:00
MaxBzh
4011290e7a
Add Urandom module in Python
2018-01-05 14:28:25 +01:00