Commit Graph

351 Commits

Author SHA1 Message Date
Émilie Feral
db35fc1d72 Merge branch 'cas_with_python' into python_console
Change-Id: I06e3e07b9fd8d52818d90110ed7517777b35b9f1
2017-12-01 17:29:55 +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
Émilie Feral
3f0328f5b5 Add assertions for dangerous bit shift that could trigger undefined
behaviour

Change-Id: I051ed229d407eafcae1ea4b5fc745176a751e036
2017-12-01 11:53:55 +01:00
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Émilie Feral
5fd8fda4b1 [calculation] Display exact and approximate results
Change-Id: Id5fe5b5db464c45f09bd1a1285def95e738a78c7
2017-11-21 17:37:25 +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
Émilie Feral
e3057d5c2b [poincare] Change multiplication sign
Change-Id: If58f62fa181ce7aac441d42d44ea65d68f0d6421
2017-10-25 18:19:01 +02:00
Romain Goyet
e5010b1621 Work around a GCC bug 2017-10-19 17:31:40 +02:00
Damien Nicolet
1bf5386f8a Corrects wrong RCC QSPIEN register definition 2017-10-16 09:21:10 +02:00
Ian Abbott
357d76515b [ion][apps] Remove redundant AlphaLockShift state
Since the 'shift' key can now toggle between the AlphaLock and
ShiftAlphaLock states, there is no way to enter the AlphaLockShift
state, so remove it.
2017-09-26 17:44:25 +02:00
Ian Abbott
68eacca570 [ion] Toggle between AlphaLock and ShiftAlphaLock
Change the behaviour of the 'shift' key in the AlphaLock and
ShiftAlphaLock states to toggle between the two.  This makes it easy to
switch between upper case and lower case letters in ALPHA-lock mode,
although the common case of entering words with isolated captital
letters in alpha-lock mode now involves additional presses of the
'shift' key.

With this change, it is impossible to enter the AlphaLockShift state.
2017-09-26 17:44:25 +02:00
Damien Nicolet
6392735e70 Add orgin/end keyboard shortcuts, by pressing shift left or shift right 2017-09-20 10:16:34 +02:00
Adrien Bertrand
f287148844 [ion] fix crc32 for loop variable type 2017-09-04 21:34:30 +02:00
Adrien Bertrand
4373bdeda4 [ion] [simulator] key chars: use unicode escapes 2017-09-01 14:15:37 +02:00
Adrien Bertrand
520775901b [ion] [simulator] more realistic button labels 2017-09-01 14:15:37 +02:00
EmilieNumworks
6e1a00c786 Merge pull request #57 from jacobly0/feature/automated-testing
Automated testing on travis using the blackbox.
2017-09-01 02:39:49 -07:00
EmilieNumworks
5ecb7d57d6 Merge pull request #36 from boricj/fixup_keys_ion_simulator
[ion/simulator] Improve key mapping
2017-09-01 01:59:46 -07:00
Jacob Young
2e105036ff Use the blackbox platform to run the tests on travis. 2017-09-01 04:00:28 -04:00
Jacob Young
4e6f673c03 Fix hex conversion for digits > 9. 2017-08-31 21:14:18 -04:00
Jean-Baptiste Boric
7d79a01ed2 [ion/simulator] Improve key mapping 2017-08-30 21:30:59 +02:00
EmilieNumworks
ea56a74955 Merge pull request #18 from jacobly0/fix-simulator-msleep
[ion] Fix simulator msleep
2017-08-30 10:34:37 +02:00
Jacob Young
d21d5594f9 Fix #7 fix #11 by using millisecond units in msleep (microseconds would be in usleep). 2017-08-30 03:42:14 -04:00
Jacob Young
67d4df5f59 Fix #9 by deactivating empty keys. 2017-08-30 03:39:23 -04: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
Émilie Feral
ca1494eef7 [ion] Include signal in blackbox boot
Change-Id: I69af8d0759caf38781475a7b245b5754bef6220a
2017-08-24 14:05:24 +02:00
Émilie Feral
88aeabb8a1 [apps][ion] Add <math.h> header to ensure building with all compilaters
[ion] In makefile, force the PATCH_LEVEL to be length 7

Change-Id: I67a7bd873a247dd42d0d1e845912cc8b71330d9e
2017-08-24 14:05:19 +02:00
Émilie Feral
68cd3f4574 [apps][ion] Discard shift alpha status when switching app or switch off
Change-Id: I955276168c9e31f7aebccbe0d57e8f15bb030e7e
2017-08-17 16:21:21 +02:00
Émilie Feral
e0676d9cfc [ion] Fix dummy events modifier
Change-Id: If79f8e61c275189bc72ad2cbe035609e4c31d694
2017-08-17 09:31:59 +02:00
Émilie Feral
82e212e771 [poincare] Template for double
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
018013e323 Merge changes I4fcc116c,I2033a99f,I6dd667fb
* changes:
  [apps/hardware_test] Clean plugging USB test
  [escher] App can have timers that are ticked when the app is active
  [ion] Clean alpha shift event modifiers
2017-07-28 10:19:15 +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
2900b901ba [ion] Clean alpha shift event modifiers
Change-Id: I6dd667fb12c0cd3d3e90a6f98da0bd56780dcff6
2017-06-30 10:42:30 +02:00
Romain Goyet
4c3e62e6a5 Fix LCD timings
Fixes some noise on a few sensitive panels

Change-Id: Ie6117a629455e1d487a8dd824fd8b73529c90e5f
2017-06-29 11:26:13 +02:00
Romain Goyet
be7b20e5a0 Proper letter ordering in the serial number
Change-Id: Ief7fbd7c4a80025831b2af21a970130dd31bfddd
2017-06-21 18:18:52 +02:00
Émilie Feral
8be899b19a [ion] Repare blackbox
Change-Id: Icc705241a659e37767cb363be35cbe5fa8070cab
2017-06-21 11:52:57 +02:00
Émilie Feral
e37f1418e5 Clean DEBUG macro
Change-Id: I5acf266d565045468c6fba19b1ca493773ae78bc
2017-06-16 15:08:14 +02:00
Émilie Feral
6a888136c3 [apps/settings] Add FCC ID in about menu
Change-Id: Iafe06e56591399a1442b8de64257990ffa23ddac
2017-06-02 14:16:55 +02:00
Émilie Feral
de9285b73e Merge changes Ic9989cf3,I8a638f31
* changes:
  [ion/device] Clean up DMA usage for the display
  [ion] Fix the events_replay generator
2017-05-24 18:14:10 +02:00
Romain Goyet
cbdbcc283d [ion/device] Clean up DMA usage for the display
Change-Id: Ic9989cf3de95cb15191d15473f839e89121c99cd
2017-05-23 17:34:37 +02:00
Romain Goyet
c5c754031c [ion] Fix the events_replay generator
Change-Id: I8a638f31c64ca74f277bada4c94323b4d4dd2b29
2017-05-23 16:56:17 +02:00
Émilie Feral
1bf018017a Merge "[ion] Abort suspend when the USB is plugged" 2017-05-23 16:01:16 +02:00
Émilie Feral
abee7f8c1b [ion] Abort suspend when the USB is plugged
Change-Id: I92828ca7879bb4ff189d55660ab3e894c90ee387
2017-05-23 15:58:07 +02:00
Émilie Feral
bda4d46fae Merge changes Iebf9237d,Ia39a3518,I42b2c892,I710adab0,Ia35eb1cc, ...
* changes:
  [poincare] Resolve warning
  [escher] Fix bug: do not redraw window at each timer fire but only for timer requiring redraw
  [ion] Add a class State in Keyboard
  [liba] Correct __aeabi_llsr, __aeabi_llsl with tests
  [poincare] Change association rules in parser
  [apps/settings] Open hardware test with 6, t or T events
  [apps/calculation] Insert ans when starting expression with -, ^, *, +, /
  [i18n] Change message: "Valeurs"->"Tableau"
  [i18n] Change message
  [escher] Repaire optimal size for message text view
2017-05-23 15:39:42 +02:00
Émilie Feral
c644a8d4f7 [escher] Fix bug: do not redraw window at each timer fire but only for
timer requiring redraw

Change-Id: Ia39a35185a4836809970f5ba77cc76a8b2e6ee26
2017-05-23 15:25:00 +02:00
Émilie Feral
f9a1caa8eb [ion] Add a class State in Keyboard
Change-Id: I42b2c892deaedc83a7629d8c8be66cd4e1fbcb5c
2017-05-23 15:24:55 +02:00
Émilie Feral
193a253eff Merge changes Ia2b70ceb,Ifcba1f46,Ib6d1cacd
* changes:
  [apps/sequence][apps/graph] Reimplement checksum to avoid risking overflowing the stack
  [escher] Clean
  [escher] Add an event "TimerTick"
2017-05-23 15:10:02 +02:00
Émilie Feral
d3908fd861 Merge changes If31db838,I76f9c9d7,I651deb9a,Ic59df28d
* changes:
  [apps/hardware_test] Redesign app
  [ion] COrrect potential bug
  [liba] Implement llsl
  [liba] Clean
2017-05-23 15:09:39 +02:00