Commit Graph

6454 Commits

Author SHA1 Message Date
Léa Saviot
e836593ff9 [kandinsky] In KDContext::getPixels: beware of rects crossing the screen
This fixes a display glitch on the device, when using Python's turtle
module and doing the command forward(200).
2018-12-07 11:30:32 +01:00
Léa Saviot
c8a5972243 [python/turtle] Turtle::circle(radius, angle) 2018-12-07 10:51:14 +01:00
Léa Saviot
cc3beb6014 [python/turtle] Turtle::reset() method 2018-12-06 17:26:43 +01:00
Léa Saviot
9c9355deba [python/turtle] Use Escher::Metric values instead of copying them 2018-12-06 17:26:43 +01:00
Léa Saviot
3ca1790908 [python/turtle] The Y axis is oriented upwards 2018-12-06 17:26:35 +01:00
Léa Saviot
432e259f30 [python/turtle] Speed max and min should produce the same behavior 2018-12-06 13:55:07 +01:00
Léa Saviot
d530637591 [python/turtle] Fix speed type 2018-12-06 13:38:05 +01:00
Léa Saviot
e769255c05 [python/turtle] Default pen size is 1 2018-12-06 11:55:29 +01:00
Léa Saviot
4b3ce7a7f1 [python/turtle] Fix Turtle::setSpeed
If speed > 10 or < 0.5, it should be set to 0. When speed is 10 or 0,
the drawing should be instantaneous. Default speed is 3.
2018-12-06 11:55:20 +01:00
Léa Saviot
1e78f20ac1 [python] Return after interruption in possibly long turtle methods
forward(100) with speed = 3 can now be interrupted.
2018-12-06 11:48:42 +01:00
Léa Saviot
49e8a501e7 [python] Fix micropython_port_interruptible_msleep
It now gets interrupted. Turtle drawing can now be interrupted too.
2018-12-05 17:41:16 +01:00
Romain Goyet
05a2491479 [python/turtle] Fix the heading 2018-11-16 18:34:46 +01:00
Romain Goyet
467ae9c6f3 [python/turtle] Fix small typos 2018-11-16 18:34:23 +01:00
Romain Goyet
5748521876 [python/turtle] Try to play well with uPy's GC 2018-11-16 18:33:41 +01:00
Romain Goyet
7fc34fe17f [python/turtle] Use an init method to reset the turtle 2018-11-16 18:33:05 +01:00
Romain Goyet
a9091c933b [python/turtle] Use a Turtle class 2018-11-16 15:31:31 +01:00
Romain Goyet
fe076d0578 [python/turtle] Use mp_float_t 2018-11-16 10:33:28 +01:00
Romain Goyet
22a39a2fd6 [python/turtle] Use a dedicated folder 2018-11-16 10:31:16 +01:00
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
Ecco
74efb3edeb Merge pull request #769 from Ecco/python-kandinsky-clean
[python] Clean the Kandinsky's module code
2018-11-15 18:10:20 +01:00
Romain Goyet
d6a2238be6 [python] Clean the Kandinsky's module code 2018-11-15 17:12:01 +01:00
Ecco
74d4f397ac Merge pull request #626 from zardam/utime_module
utime module
2018-11-15 17:04:08 +01:00
Romain Goyet
ddf2457ce7 [ion/timing] Fix some typos 2018-11-15 16:44:06 +01:00
Léa Saviot
ae476f922c [ion] Fix and comment the UI comparison tool 2018-11-15 16:23:03 +01:00
Romain Goyet
a3d6d6ddd6 [ion/timing] Cleanup 2018-11-15 16:19:07 +01:00
Romain Goyet
888d6cf7f4 [ion/timing] millis return uint64_t
Otherwise we could loop after a month or so
2018-11-15 15:20:12 +01:00
Romain Goyet
07a768ace6 [ion/timing] Use explicit integer types 2018-11-15 15:18:19 +01:00
Romain Goyet
26e1aa143e [ion/timing] Use std::chrono::steady_clock 2018-11-15 15:14:49 +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
1c1a3bc899 [ion] Disable/enable interrupts only on non-XIP DFU 2018-11-15 14:56:17 +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
1b57bc39c0 [ion] Discard micros() as those aren't used for now 2018-11-15 14:12:17 +01:00
Émilie Feral
737393072e [statistics] Fix histogram_controller and multiple_data_view_controller
life cycle (viewWillAppear, didEnterResponderChain)

This fixes the histogram labels when a serie is added
2018-11-15 12:02:21 +01:00
Émilie Feral
fe3b9ad5ba [statistics] MultipleDataView: setDisplayBanner forces to re-layout the
banner view
2018-11-15 12:02:21 +01:00
Émilie Feral
592ae15499 [statistics] MultipleDataViewController: always select the right subview
(the controlled view might have been destroyed -returing to home for
instance)
2018-11-15 12:02:21 +01:00
Léa Saviot
bfc24f86c9 [poincare] Clean Charlayout baseline computation 2018-11-15 11:56:00 +01:00
Léa Saviot
4e5bf5db2f [apps/settings] Writing format submenu has slightly bigger rows
So that the edition2D layout fits better
2018-11-15 11:56:00 +01:00
Léa Saviot
266cc79d32 [escher] Remove unneeded include 2018-11-15 10:26:34 +01:00
Léa Saviot
99d97814bc [apps] Clean battery_view code 2018-11-15 10:26:34 +01:00
Léa Saviot
062ff5af1a [apps] Update the battery level after an update 2018-11-15 10:26:34 +01:00
Romain Goyet
8d148ce504 [apps/code] Don't add the time module functions in the catalog just yet 2018-11-14 17:40:51 +01:00
Romain Goyet
d7a13ba8fd Revert to micropython_port_should_interrupt 2018-11-14 16:57:16 +01:00
Léa Saviot
0eae57da09 [apps/stats] Fix pixel row not drawn when there are 3 histograms 2018-11-14 10:35:57 +01:00
Léa Saviot
8d9ac798db [poincare] Dividing 3E-2 in Natural edition should give (3E-2)/| 2018-11-13 15:51:58 +01:00
Léa Saviot
f052bd9088 [python/port] Clean some code 2018-11-13 10:06:23 +01:00
Romain Goyet
f168ba46de [ion/emscripten] Update the display during long-running Python scripts 2018-11-13 10:06:23 +01:00