Willy-JL
bd2ee18e48
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2025-02-28 02:03:45 +00:00
WillyJL
404764b660
GUI: Widget view extra options for JS ( #4120 )
...
* Fill option for widget frame
* Add widget circle element
* Add widget line element
* Fix missing include for InputType
* Fix missing comment
* Update api symbols
* Load .fxbm from file
* Fix copy pasta
* Add fill param to example
* Fix some comments
* Bump JS SDK 0.3
* Fix free
* Rename widget frame to rect
* Gui: add widget_add_frame_element backward compatibility macros
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2025-02-21 10:47:56 +09:00
Anna Antonenko
7c5c5d4749
[FL-3734] UART framing mode selection ( #4121 )
...
* HAL: feat: uart framing
* JS: feat: uart framing
* fix formatting
* fix pvs warning
* HAL: flash impact reduction attempt 1
* HAL: flash impact reduction attempt 2
* fix compile error
* HAL: finalize flash impact reduction
* HAL: remove user-facing magic numbers
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2025-02-21 04:54:38 +09:00
Willy-JL
72281d9666
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2025-02-18 16:25:29 +00:00
Anna Antonenko
e27f82f041
[FL-3925, FL-3942, FL-3944] JS features & bugfixes (SDK 0.2) ( #4075 )
...
* feat: JS GPIO PWM, JS GUI Widget view; fix: JS EvtLoop stop on request, JS EvtLoop stop on error
* fix: f18 build
* docs: widget
* fix: js unit test
* change feature naming
Co-authored-by: あく <alleteam@gmail.com >
2025-02-13 17:50:38 +09:00
WillyJL
30d7589f5c
JS: Add illegalSymbols prop for gui/text_input ( #290 )
...
* JS: Add illegalSymbols prop for gui/text_input
* Update changelog
* Fix gui example
2024-11-04 09:38:59 +01:00
Willy-JL
6e454582a4
JS: Fix NULL ptr in spi example
...
not sure why this doesnt work, it worked before
2024-11-02 23:22:09 +00:00
Willy-JL
67d9f5b44a
JS: Add extra SDK feature strings
2024-11-02 04:34:23 +00:00
Willy-JL
87ef8772c2
Fix last __dirname and __filename usages
2024-11-02 04:15:32 +00:00
Willy-JL
462d0309c0
Merge commit '85e5642b2ab537ae9e1c0bccac8add975b8a9ed1' into mntm-dev
2024-10-31 17:51:09 +00:00
WillyJL
c807ffc324
JS: Backport³ and more additions & fixes ( #3961 )
...
* JS: Fix file select for fbt launch js_app
* JS: badusb: Add numpad keys
Co-authored-by: oldip <oldip@users.noreply.github.com >
* JS: badusb: Layout support
* JS: badusb: altPrint() and altPrintln()
Co-authored-by: oldip <oldip@users.noreply.github.com >
* JS: badusb: quit()
* JS: serial: readAny()
* JS: serial: end()
* JS: serial: Auto disable expansion service
* JS: storage: Add example script
* JS: gui: text_input: Fix NULL ptr when no prop given
* JS: gui: text_input: Default text props
Co-authored-by: xMasterX <xMasterX@users.noreply.github.com >
* JS: gui: byte_input
Co-authored-by: xMasterX <xMasterX@users.noreply.github.com >
* JS: gui: file_picker
* JS: gui: viewDispatcher.currentView
* JS: gui: view.hasProperty()
* JS: gui: Add some missing typedefs comments
* JS: globals: Fix toString() with negative numbers
* JS: globals: parseInt()
Co-authored-by: Spooks4576 <Spooks4576@users.noreply.github.com >
* JS: globals: toUpperCase() and toLowerCase()
Co-authored-by: Spooks4576 <Spooks4576@users.noreply.github.com >
* JS: globals: Add some missing typedefs
* JS: Add example for string functions
Co-authored-by: Spooks4576 <Spooks4576@users.noreply.github.com >
* JS: globals: __dirpath and __filepath
Co-authored-by: jamisonderek <jamisonderek@users.noreply.github.com >
* JS: globals: load() typedef missing scope param
* JS: Add interactive REPL script example
* JS: Add missing icon for file picker
* JS: Rename to __filename and __dirname
* JS: Move toUpperCase() and toLowerCase() to string class
* JS: parseInt() refactor
* JS: Typedef base param for parseInt()
* Revert "JS: gui: view.hasProperty()"
This reverts commit 1967ec06d4f2e9cafc4e18384ad370f7a7c44468.
* JS: Move toString() to Number class
* JS: Fix duplicate plugin files
in plugins, `requires` is used to determine which app to distribute the .fal under `apps_data/appid/plugins`
* JS: math: Missing typedefs, use camelCase
* JS: badusb: layoutPath is optional in typedef
* Fix ASS scoping
* Rename mjs term prop type value
* Change load() description
* Enlarge buffers in default prop assign
* More checks for default data/text size
* Make PVS happy
* Fix icon symbol
* Update types for JS SDK
* toString() was moved to number class
Co-authored-by: oldip <oldip@users.noreply.github.com >
Co-authored-by: xMasterX <xMasterX@users.noreply.github.com >
Co-authored-by: Spooks4576 <Spooks4576@users.noreply.github.com >
Co-authored-by: jamisonderek <jamisonderek@users.noreply.github.com >
Co-authored-by: hedger <hedger@users.noreply.github.com >
Co-authored-by: あく <alleteam@gmail.com >
2024-10-31 14:22:05 +09:00
Anna Antonenko
85e5642b2a
[FL-3918] Full-fledged JS SDK + npm packages ( #3963 )
...
* feat: js sdk
* refactor: move js back where it belongs
* docs: generate docs using typedoc
* feat: sdk versioning scheme
* ci: silence pvs warning
* docs: bring back old incomplete js docs
* style: readAnalog naming
* fix: rename script compatibility screens
Co-authored-by: あく <alleteam@gmail.com >
2024-10-31 11:42:57 +09:00
Willy-JL
96e5b24a71
JS: Fourth batch of OFW PR changes
2024-10-25 17:27:41 +01:00
Derek Jamison
6b9ae090f8
JavaScript: SPI implementation ( #272 )
...
* JavaScript: SPI implementation
* Fix build
* Add typedefs
* Port example script to newJS
* Push new manifest to bottom
* Update changelog
---------
Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com >
2024-10-23 00:33:34 +02:00
Derek Jamison
e682b6b19e
JavaScript: Add I2C support ( #259 )
...
* JavaScript: Add I2C support
* Format
* Check input bytes, allow arraybuf write input
* Add comment
* Return arraybuf, remove unnecessary malloc and memset
* More meaningful var names for code readability, fix some bugs
* Remove unnecessary state
* Fix build
* Update changelog
* Add typedefs
* toString() updates in example script
---------
Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com >
2024-10-20 07:24:44 +02:00
Willy-JL
bb6c015235
JS: Second batch of OFW PR changes
2024-10-19 01:17:22 +01:00
Willy-JL
4a0dfa8de9
JS: First batch of OFW PR review changes
2024-10-18 04:35:27 +01:00
Willy-JL
799ff282f4
JS: Sync small differences from OFW PR
2024-10-17 23:43:21 +01:00
Willy-JL
685e06b4d6
JS: Improve REPL script
2024-10-17 21:32:31 +01:00
Willy-JL
5d2bb9af5e
JS: Backport file picker as new module
2024-10-16 19:35:42 +01:00
Willy-JL
7d21bdfb7d
JS: Update interactive.js REPL example
2024-10-16 14:39:22 +01:00
Willy-JL
72d47cfacd
JS: Expose currentView in gui.viewDispatcher
2024-10-16 14:38:53 +01:00
Willy-JL
51d0fdc5fa
JS: Byte/Text Input fixes, gui example improvements
2024-10-16 14:38:00 +01:00
Willy-JL
3b86248288
JS: Fix load.js example path
2024-10-16 14:16:19 +01:00
Willy-JL
6b4e94ec58
JS: More fixes
2024-10-16 11:53:07 +01:00
Willy-JL
270e97ff66
JS: Update storage example
2024-10-16 11:32:01 +01:00
Willy-JL
f96c538efe
JS: Port byte input example (WIP, has some bugs in C code, JS is fine)
2024-10-16 05:26:19 +01:00
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