Léa Saviot
239e702d37
[code] Navigation in the console history.
...
The user can copy previous commands or results, into the clipboard or in
the console prompt.
Change-Id: I280fff2d4937f4d17ab6c8907d6e5c359a322372
2017-11-17 11:59:50 +01:00
Léa Saviot
745eddfa05
[code] Added default Fibonacci script.
...
Change-Id: I2766fa542ee64722018486a874e9855a5976a788
2017-11-17 11:59:50 +01:00
Léa Saviot
35520fb3d4
[code] Scripts can be automatically imported when the console is opened.
...
Editing, renaming, deleting or changing the auto-importation of a script
triggers the reloading of the console (the history is cleared, Python
restarted and the scripts re-imported).
Change-Id: If8b933cc077ecd36cab09214b5e7a181aa3ae030
2017-11-17 11:59:50 +01:00
Léa Saviot
45aa526cd6
[code] Fixed SelectableTableView selection problem.
...
If adding a script fails, the selectableTableView should select the "Add
script" line.
Change-Id: I373cdfa0afcc334e4bf306b1cee4bfb817417980
2017-11-17 11:59:50 +01:00
Léa Saviot
fbb5c70339
[code] Cleaned Script and ScriptStore classes, created accordion.h
...
A Script object now contains its AutoImport marker, its name and its
content. The ScripStore methods have better names and the optimization
is cleaner.
Change-Id: I1b21af2d23f1c9a34f984309512b0c01b2f1c320
2017-11-17 11:59:50 +01:00
Léa Saviot
a14cfd0aea
[code] Script names are displayed and can be edited.
...
Change-Id: I5acc468920b66673e78da130bf90a74d0c062211
2017-11-17 11:59:50 +01:00
Léa Saviot
68f368fcde
[code] The user can delete scripts.
...
Change-Id: I1b60a4c79a58efe5213add1b1c5d60cdfe85c1e6
2017-11-17 11:59:50 +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
Léa Saviot
f3200fe2e9
[code] Program store that uses an accordeon buffer to store the
...
programs. The user can now add scripts.
A contextual menu displays various options when clicking on a script,
such as editing.
Change-Id: I124a17f7584b0beedb897e8499ca0a1bb6c13cbe
2017-11-17 11:59:50 +01:00
Léa Saviot
adabf95b59
[code] The interface is a list with a button at the bottom to
...
start the console.
Change-Id: I4a4a432db2d4cdc72e9a0ad7aa5904c1ded3c0e1
2017-11-17 11:59:50 +01:00
Léa Saviot
c57f9cf8b1
[code] The Python console compiles and executes commands entered.
...
It stores and displays the result in the console store.
An empty line returned at the end of the execution is deleted.
Change-Id: Ic90e02e2d91d0a0033413da0588032d9450aefd0
2017-11-17 11:59:50 +01:00
Léa Saviot
493cef0d4d
[code] Python console that stores and displays commands that are
...
entered.
Change-Id: I0343c38b60f4bbea6dfab173e2b5f46f66b83251
2017-11-17 11:59:50 +01:00
Romain Goyet
3d10d3e951
Use zero-initialization for character arrays
...
It makes some not-fully-compliant compilers happy
2017-10-19 17:31:40 +02:00
Romain Goyet
e6ed6c74a4
[apps] Split the i18n in multiple files
...
A Python script aggregates all i18n files and merges them.
We now can pick a list of locales to build in EPSILON_I18N_LANGUAGES
2017-09-29 17:08:46 +02:00
Romain Goyet
dcdd27d6bf
[apps] Apps can be picked and ordered at compile-time
2017-09-20 11:18:39 +02:00
Adrien Bertrand
3c2a99bdd6
[apps/code] template program: don't memcpy from beyond the string
...
- Was caught by ASan
- Added a static_assert on the length just in case
- Big C strings concats replaced by raw C++ literal for clarity
2017-08-31 20:53:54 +02:00
Émilie Feral
31fbeda468
[apps/code] Change demo program
...
Change-Id: I5cce0bfd5bc30fe46cb039883cbeda7c29d45a64
2017-08-28 14:08:36 +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
b50296d9c2
[apps/code] Repare print() in micropython
...
Change-Id: I43c46748b15d83e071c7b7f1e8448384ce5ad77f
2017-08-25 11:20:48 +02:00
Émilie Feral
bc12789e1f
[apps/code] Clean editor
...
Change-Id: I85c1eec28f381630fa97199a521b85dfe7cac89c
2017-08-18 13:34:35 +02:00
Émilie Feral
ea55df62d4
[apps/code] Correct text area buffer size
...
Change-Id: Icc250bd3f4db2e8f9f96471dedbdfd31eab220af
2017-08-18 13:34:34 +02:00
Émilie Feral
f5d5db6062
[apps/shared] In message controller, enable to choose message colors and
...
message texts
Change-Id: I1bf1eb8d5dd2a93d0a6f5bbff13fe4d1de66d920
2017-08-17 16:21:22 +02:00
Émilie Feral
304bbf18b9
[apps/code] Split the editor in editor and executor
...
Change-Id: I862deeb4fd84e8fb77bf880095f80c1a2a4d8c5d
2017-08-17 16:21:22 +02:00
Émilie Feral
eec8c7f1ce
[apps/code] Add a model program
...
Change-Id: I79b74f1f245d98d1ce02a590ee25de2c4fbb3c59
2017-08-17 16:21:21 +02:00
Émilie Feral
8b6dfdc3f9
[apps/code] Add a menu to edit and execute the program
...
Change-Id: I036e5a32fa6823b25af4ccd742967841579d7639
2017-08-17 16:21:21 +02:00
Émilie Feral
f434cda428
[code] Add a pop up to warn about beta version
...
Change-Id: I4301c7a53d0d43bb1e322b9e3e1587ec2040e0b8
2017-08-17 16:21:21 +02:00
Émilie Feral
bb5523b747
[python] Change app name and icon
...
Change-Id: I0c505d08a464d63200bd5e1e0dc81825632691e5
2017-08-17 16:21:21 +02:00
Romain Goyet
30471ede35
[apps] The code app runs Python code
...
Change-Id: I6034adeb368db2c5d3b64b16f8ad512750cd3bc0
2017-08-09 15:58:29 +02:00
Romain Goyet
19cf3a4958
[apps] Add a code app
...
Change-Id: Icc72c378a6434b5d3b0af74f23e31ea7514882b8
2017-08-03 23:28:56 +02:00