Willy-JL
c8b3bf1869
JS: camelCase changes
2024-10-16 01:55:00 +01:00
Willy-JL
a85819f37e
JS: Merge fixes
2024-10-16 00:57:09 +01:00
Willy-JL
2f6faa1b7b
Merge remote-tracking branch 'ul/dev' into mntm-dev
2024-10-16 00:56:19 +01:00
Willy-JL
97d58c500f
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-10-15 23:49:41 +01:00
Willy-JL
88dfe97a89
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-10-15 23:43:33 +01:00
MX
a1993a528d
badusb js paritally fix
2024-10-16 01:11:34 +03:00
MX
ac3c6dc4f9
move examples
2024-10-16 01:07:03 +03:00
MX
7de26fb99b
Merge remote-tracking branch 'OFW/dev' into dev
2024-10-16 01:06:19 +03:00
porta
a6cf08523c
Small JS fixes ( #3950 )
2024-10-15 18:03:15 +01:00
porta
8a95cb8d6b
[FL-3893] JS modules ( #3841 )
...
* feat: backport js_gpio from unleashed
* feat: backport js_keyboard, TextInputModel::minimum_length from unleashed
* fix: api version inconsistency
* style: js_gpio
* build: fix submodule ._ .
* refactor: js_gpio
* docs: type declarations for gpio
* feat: gpio interrupts
* fix: js_gpio freeing, resetting and minor stylistic changes
* style: js_gpio
* style: mlib array, fixme's
* feat: js_gpio adc
* feat: js_event_loop
* docs: js_event_loop
* feat: js_event_loop subscription cancellation
* feat: js_event_loop + js_gpio integration
* fix: js_event_loop memory leak
* feat: stop event loop on back button
* test: js: basic, math, event_loop
* feat: js_event_loop queue
* feat: js linkage to previously loaded plugins
* build: fix ci errors
* feat: js module ordered teardown
* feat: js_gui_defer_free
* feat: basic hourglass view
* style: JS ASS (Argument Schema for Scripts)
* fix: js_event_loop mem leaks and lifetime problems
* fix: crashing test and pvs false positives
* feat: mjs custom obj destructors, gui submenu view
* refactor: yank js_gui_defer_free (yuck)
* refactor: maybe_unsubscribe
* empty_screen, docs, typing fix-ups
* docs: navigation event & demo
* feat: submenu setHeader
* feat: text_input
* feat: text_box
* docs: text_box availability
* ci: silence irrelevant pvs low priority warning
* style: use furistring
* style: _get_at -> _safe_get
* fix: built-in module name assignment
* feat: js_dialog; refactor, optimize: js_gui
* docs: js_gui
* ci: silence pvs warning: Memory allocation is infallible
* style: fix storage spelling
* feat: foreign pointer signature checks
* feat: js_storage
* docs: js_storage
* fix: my unit test was breaking other tests ;_;
* ci: fix ci?
* Make doxygen happy
* docs: flipper, math, notification, global
* style: review suggestions
* style: review fixups
* fix: badusb demo script
* docs: badusb
* ci: add nofl
* ci: make linter happy
* Bump api version
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-10-14 19:42:11 +01:00
MX
3b74c0733f
js subghz module fixes and improvements
...
by @Willy-JL
2024-07-08 07:51:20 +03:00
Willy-JL
49a63bf10b
JS: Improve and fix subghz module
...
- Fix some memory leaks
- Check for setup() being called
- Add end(), can setup() again to check for external module
- Add support for custom modulation presets
- Improve error handling
- Deinit correctly at exit
- Fix RAW files
- Fix repeat behavior, can specify with transmitFile(path, repeat)
2024-07-06 03:13:18 +02:00
MX
e403860e61
js add storage module
...
(without virtual mount api calls)
by Willy-JL
2024-06-22 02:01:26 +03:00
MX
ceaf2d4153
add js adc
...
by jamisonderek
https://github.com/Next-Flip/Momentum-Firmware/pull/143/files
2024-06-12 12:31:10 +03:00
Derek Jamison
b3e100967c
JS: Add ADC (analog voltage) support to gpio library ( #143 )
...
* JS: Add ADC (analog voltage) support to gpio library
* JS: readAnalog crashes if script doesn't call analogStart first.
* Use same start/stop convention as other js modules
---------
Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com >
2024-06-12 02:00:47 +01:00
MX
8275140fe6
rename
2024-05-19 03:57:19 +03:00
MX
4f6c98dc0d
move js examples to examples subfolder
2024-05-19 03:56:22 +03:00
MX
21abcb56fd
merge ofw dev missing parts
2024-05-19 03:54:21 +03:00
Willy-JL
3a82c94e28
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev --nobuild
2024-05-18 05:46:15 +01:00
WillyJL
0d456aa550
JS: Add textbox module ( #3597 )
...
* JS: Add textbox module
* Using view_holder instead of view_dispatcher, more checks in js_textbox_show
* API version sync
* Rename emptyText() to clearText()
* Keeping view_holder allocated for thread sefety
* Js: proper comparision with 0 in js_math_sign
* Js: add comments and fix condition race in textbox
Co-authored-by: あく <alleteam@gmail.com >
Co-authored-by: nminaylov <nm29719@gmail.com >
2024-05-17 18:43:52 +01:00
WillyJL
c673b53e21
JS: Add math module ( #3598 )
...
* JS: Add math module
* Double constants
* Error on argument type mismatch
* Fix missing returns
* Using sin, exp from c library
* asin, acos, pow, sqrt too
* Js: tests for math module and various fixes.
Co-authored-by: あく <alleteam@gmail.com >
Co-authored-by: nminaylov <nm29719@gmail.com >
2024-05-17 17:45:40 +01:00
WillyJL
63403bbae2
JS: Add submenu module ( #3601 )
...
* JS: Add submenu module
* Using view_holder instead of view_dispatcher
Co-authored-by: nminaylov <nm29719@gmail.com >
Co-authored-by: あく <alleteam@gmail.com >
2024-05-16 18:55:08 +01:00
Willy-JL
73135acb8c
Move JS examples to subfolder
2024-05-02 00:53:17 +01:00
Willy-JL
5f80b90a5a
JS: Add storage copy() move() mkdir()
2024-04-05 06:56:50 +01:00
Willy-JL
309889e581
JS: Refactor storage to use array buffers
2024-04-05 06:46:34 +01:00
MX
6e4d32b941
js add badusb layout support
...
by Willy-JL
2024-04-05 08:01:53 +03:00
Willy-JL
d4cd06816c
JS: Add badusb layout support
2024-04-05 05:33:43 +01:00
MX
ec4b8b8f5e
Various fixes
...
fixes by Willy-JL
nfc parser by zacharyweiss
js widget and path globals by jamisonderek
2024-04-05 01:25:03 +03:00
Willy-JL
58b8a13286
JS: Small improvements to widget example
2024-03-28 22:29:18 +00:00
Willy-JL
a1eeeb245f
JS: Widget icons without path, just name
2024-03-28 22:28:52 +00:00
Derek Jamison
a94a1a96ae
JS: Add widget module
2024-03-26 23:00:10 -05:00
Derek Jamison
ea9f151213
JS: Add __filepath and __dirpath globals.
2024-03-26 21:09:41 -05:00
MX
aaa7c81f99
js modules updates 2
...
by Willy-JL
2024-03-23 23:48:55 +03:00
Willy-JL
c03d3a80bf
JS: Add serial.readAny(timeout)
...
helps with starving js script loop due to reading 1 byte each time
2024-03-23 20:20:12 +00:00
Willy-JL
380038c01d
JS: Fix serial expansion bugs, add serial.end()
2024-03-23 20:19:08 +00:00
MX
c323656037
js modules updates
...
by Willy-JL
2024-03-23 23:18:26 +03:00
Willy-JL
5f3cd77056
JS: Fix textbox bugs, addText() instead of setText(), add emptyText()
2024-03-23 20:14:51 +00:00
Willy-JL
5b63952b12
JS: Add textbox module
2024-03-23 05:15:56 +00:00
MX
6f560ef210
js updates
...
by Willy-JL , oldip
2024-03-20 13:13:04 +03:00
WillyJL
1a2c029ab6
Merge pull request #33 from oldip/feature/numpad-keybindings
...
Add numpad keybindings to improve non-US input methods
2024-03-19 04:48:01 +00:00
Willy-JL
f48848ca4d
JS: Add BadUSB Alt+Numpad example
2024-03-19 04:45:54 +00:00
Willy-JL
385fe4b4e6
JS: Add header text to REPL interactive console
2024-03-19 01:55:21 +00:00
Willy-JL
03499243a3
JS: Allow pressing back in Submenu
2024-03-17 20:51:42 +00:00
Willy-JL
6b21783d76
JS: Add REPL interactive console
2024-03-17 06:56:18 +00:00
Willy-JL
9d83750a83
JS: Keyboard allow pressing back, add symbols, cleanup
2024-03-17 06:55:44 +00:00
Willy-JL
7f07417676
Move to js_thread + improve parse_int
2024-03-17 06:19:46 +00:00
Willy-JL
19b5f35afb
Remove string utilities already in MJS
2024-03-17 05:45:57 +00:00
Willy-JL
10a03e0cc1
Merge branch 'dev' of https://github.com/Next-Flip/Momentum-Firmware into dev
2024-03-17 04:35:59 +00:00
MX
d573cc06da
js modules updates
...
by Willy-JL and Sil333033
2024-03-15 07:09:16 +03:00
Willy-JL
5b1002e433
JS: Add dialog.pickFile()
2024-03-14 02:29:48 +00:00