Commit Graph

49 Commits

Author SHA1 Message Date
Léa Saviot
e619ee0f2c [ion] Fix crc32_padded inclusion 2018-11-23 12:03:59 +01:00
Romain Goyet
ddf2457ce7 [ion/timing] Fix some typos 2018-11-15 16:44:06 +01:00
Romain Goyet
07a768ace6 [ion/timing] Use explicit integer types 2018-11-15 15:18:19 +01:00
Romain Goyet
e73033b19c Merge branch 'master' into utime_module 2018-11-15 14:37:11 +01:00
Romain Goyet
f168ba46de [ion/emscripten] Update the display during long-running Python scripts 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
940270e78a [ion] add millis() and micros() using systick on device 2018-11-09 01:30:22 +01:00
Romain Goyet
9825c73238 [ion/emscripten] Actual implementation of Ion::Keyboard::scan
This allows interrupting Python scripts on the Emscripten port
2018-11-08 17:11:17 +01:00
Romain Goyet
f1198d3c76 [ion] Add Ion::stackSafe
This allows asserting the stack is within bounds
2018-10-12 09:36:44 +02:00
Romain Goyet
5b77c84903 [emscripten] Add an update script 2018-06-26 14:13:31 +02:00
Romain Goyet
e6a8e0e198 [emscripten] Use the navigator's language 2018-06-26 14:13:31 +02:00
Romain Goyet
0634e9ea7d [emscripten] Expose IonSoftwareVersion and IonPatchLevel 2018-06-26 14:13:31 +02:00
Romain Goyet
5eb4d9ccf6 [emscripten] Fix key handling 2018-06-26 14:13:31 +02:00
Romain Goyet
89ede25b17 [emscripten] Update the simulator background 2018-06-26 14:13:31 +02:00
Romain Goyet
fc1d887695 [emscripten] Update the HTML page 2018-06-26 14:13:31 +02:00
Romain Goyet
4a7e4ee512 [emscripten] Add a Module.onDisplayRefresh callback 2018-06-18 10:08:01 +02:00
Romain Goyet
c4330ae7b1 Use <span> instead of <a> for the keys
Indeed, a keypress on the Enter key submits the last active links,
resulting in double inputs.
2018-04-18 10:04:18 +02:00
Émilie Feral
934e8feca5 [emscripten] Handle None event from SDL 2018-04-11 16:07:46 +02:00
Émilie Feral
4312df1bf1 [ion] Enable to call updateModifiersFromEvent on Special events
(Termination event on emscripten platform for instance)
2018-04-05 15:13:33 +02:00
Émilie Feral
c5e525ddb7 Enable to give options at run-time 2018-03-22 11:58:56 +01:00
Émilie Feral
af877c19bb [build] Add a flag MODULARIZE when building with
emscripten toolchain
2018-03-22 11:58:56 +01:00
Émilie Feral
37ff8dc0a3 [ion] Give the options to ion_app that becomes ion_main 2018-03-22 11:58:56 +01:00
Romain Goyet
c0a9ec1c91 [emscripten] Events can be enqueued 2018-03-21 15:54:17 +01:00
Romain Goyet
09976d6a42 [emscripten] Be a lot nicer on the CPU 2018-03-21 15:54:17 +01:00
Adrien Bertrand
76dbea981d [emscripten] Fix save screenshot feature 2018-02-02 17:48:42 +01:00
Romain Goyet
67f082f4e8 [emscripten] Use emterpreter
This allows us to control the runloop
2018-02-01 14:10:26 +01:00
Émilie Feral
7aca44812e [ion] Correct random() implementation in simulator, blackbox and
emscripten
2018-01-23 10:24:52 +01:00
Jacob Young
e5868aaeab Add extra keyboard shortcuts to the emscripten platform. 2017-12-12 14:05:58 +01:00
Jacob Young
b5bf6002f9 Remove unnecessary namespace qualifiers. 2017-12-12 14:05:58 +01:00
Jacob Young
94e18f90e0 Add missing static. 2017-12-12 14:05:58 +01:00
Romain Goyet
1e538600e3 Add the ability to take a screenshot in the packaged web simulator 2017-12-12 09:43:06 +01:00
Léa Saviot
1ce6f36651 [code] Fixed the wait for user input after drawing using Python.
A SandboxController is now pushed on the StackViewController and sets the
KDIonContext::sharedContext before drawing, sets a white background and handles
user input after the Python computation to dismiss the drawing screen.

Change-Id: I51b0474365a85e845227379a16d090541fa8ded7
2017-12-01 13:19:28 +01:00
Léa Saviot
2aa1cb0256 [emscripten] Fixed Python computation interruption.
A dummy scan() was used, which stopped the computation with
shouldInterrupt().

Change-Id: I661a630bd1a83c6036513fb9a086c58ba542f25b
2017-11-17 16:42:39 +01:00
Romain Goyet
9a41ee8ad9 Add the ability to package the web simulator 2017-11-06 21:54:18 +01:00
Romain Goyet
c451b56418 emscripten: set the language from command-line arguments
Change-Id: I8bac1670c4c01e974f6303c9aa392a12c5d2fac0
2017-08-28 14:16:10 +02:00
Émilie Feral
8fd329d167 [ion] Fix alpha and shift modifiers for emscripten
Change-Id: If8ae07048dddbcf77c18a7c9f06160359f6638ba
2017-08-25 11:20:49 +02:00
Romain Goyet
70174638df [ion] Fix sending events to emscripten build
Change-Id: I9306554044a0b2fe2ee26769cc66a2684a05bebe
2017-07-21 15:12:38 +02:00
Romain Goyet
80c6d052f2 [ion] Emscripten display uses an internal framebuffer
We operate on a framebuffer (push/pull rect), and then copy it all to
the screen at once. This avoids reading back from video memory. All in
all, it goes *much* faster this way.

Change-Id: I472d35988fde876906a9be71e0666b2c238114b3
2017-07-21 14:02:12 +02:00
Émilie Feral
6a888136c3 [apps/settings] Add FCC ID in about menu
Change-Id: Iafe06e56591399a1442b8de64257990ffa23ddac
2017-06-02 14:16:55 +02:00
Romain Goyet
a1552b2fa1 [ion] Fix the emscripten build
Change-Id: Ia54c5de4191c47d9840854d9aad12f87a9110da3
2017-05-15 22:04:37 +02:00
Romain Goyet
a94e8c314f Simplify the makefile configuration
Change-Id: I826916e0d0b23f7429a66dfa7001b19dcc53080a
2017-02-16 11:00:17 +01:00
Romain Goyet
a56a2a060e [ion] Share the Ion::Power::suspend stub
Change-Id: I6a278547a5b5d5caec796ad53e88bca706cbcad3
2017-01-25 11:04:29 +01:00
Romain Goyet
d9216522dc [ion/emscripten] Bigger buttons on mobile
Change-Id: I9326ab9a6dff6490de79ea75b9e1e5c2ecde4818
2016-11-21 14:04:16 +01:00
Romain Goyet
5dc34dd387 [ion] Emscripten backend handles text input
Change-Id: I615845e2b75b99b2a666cf956ed6cc219c95b204
2016-11-14 15:46:56 +01:00
Romain Goyet
5d9a3c2c92 [ion] Emscripten handles events from click
Change-Id: I81116dfd829fafc60d8aafd5edb7a925780900ff
2016-11-14 15:46:50 +01:00
Romain Goyet
ade7f0480b [ion] Initial emscripten support
Change-Id: Id76a45c5c723fae11387e20458bc9555689b9a48
2016-11-06 12:06:02 +01:00