Willy-JL
b86d58c3c4
Merge commit 'c807ffc3249e07220365bef8dd34511bb1dd0794' into mntm-dev
2024-10-31 18:07:10 +00:00
Willy-JL
462d0309c0
Merge commit '85e5642b2ab537ae9e1c0bccac8add975b8a9ed1' into mntm-dev
2024-10-31 17:51:09 +00:00
Willy-JL
a010a9e933
Merge commit 'e4c82708242b25a9af4d2695dd72f4eef44631eb' into mntm-dev
2024-10-31 16:40:46 +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
72272b3b34
[FL-3922] Fix JS memory corruption ( #3971 )
...
Co-authored-by: あく <alleteam@gmail.com >
2024-10-31 13:15:52 +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
Skorpionm
6d823835df
FurEventLoop: add support for FuriEventFlag, simplify API ( #3958 )
...
* Core: event_flag, removing duplicate code
* event_loop: add support furi_event_flags
* Examples: add missing free in event loop examples
* Furi: fix event flag
* Sync api symbols
* Unit_test: evet_loop_event_flags
* Fix multiple waiting list elements handling
* Unit_test: add event_loop_event_flag test
* FURI: event_loop add restrictions
* Fix multiple waiting lists items for good
* Improve FuriEventLoop unit tests
* Abolish callback return value
* Remove return value from callback signature
* Use bool level value instead of int32_t
* Add unit tests for FuriStreamBuffer
* Add unit tests for FuriSemaphore
* Speed up test execution
* Improve docs
* Add a stub for furi os-level primitives
* Add more checks for edge cases
* Allow event loop notification from ISR
* Bump api version
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com >
Co-authored-by: Georgii Surkov <37121527+gsurkov@users.noreply.github.com >
2024-10-31 10:58:16 +09:00
Willy-JL
38471fdd75
GUI: Refactor TextInput illegal symbols API
2024-10-29 22:08:52 +00:00
Willy-JL
4b8b27954b
Merge remote-tracking branch 'ul/dev' into mntm-dev
2024-10-29 02:15:59 +00:00
MX
e87356af72
Merge remote-tracking branch 'OFW/portasynthinca3/3922-gpio-crash' into dev [ci skip]
2024-10-28 23:20:13 +03:00
MX
e630f44afd
merge p2
2024-10-28 22:22:21 +03:00
MX
6b6d98da2a
merge js changes
...
changes by Willy-JL
spi module by jamisonderek
2024-10-28 22:21:42 +03:00
Willy-JL
19a65a85ba
JS: Temp enable illegal symbols in textinput until prop is available
2024-10-25 17:28:26 +01:00
Willy-JL
96e5b24a71
JS: Fourth batch of OFW PR changes
2024-10-25 17:27:41 +01:00
Anna Antonenko
d0214c7b27
fix: incorrect usage of mjs_own
2024-10-23 20:07:03 +03: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
Willy-JL
bbb85a4df9
JS: Third batch of OFW PR changes
2024-10-22 02:38:21 +01:00
MX
48acd9f075
merge examples
2024-10-20 16:01:21 +03:00
MX
8c960a990c
merge js upds
...
by jamisonderek & Willy-JL
2024-10-20 16:00:10 +03: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
MX
0b7f174162
fix icon
2024-10-19 12:33:57 +03:00
Willy-JL
bb6c015235
JS: Second batch of OFW PR changes
2024-10-19 01:17:22 +01:00
MX
fe3228b63e
merge p2
2024-10-18 20:22:21 +03:00
MX
bc73b13b1b
merge js stuff
...
https://github.com/Next-Flip/Momentum-Firmware/commits/js-backport-of-backport/
2024-10-18 20:21:09 +03:00
Willy-JL
4a0dfa8de9
JS: First batch of OFW PR review changes
2024-10-18 04:35:27 +01:00
Willy-JL
ba74e953c4
JS: C define to move JS runner to flash (still external for now)
2024-10-18 02:56:06 +01:00
Willy-JL
799ff282f4
JS: Sync small differences from OFW PR
2024-10-17 23:43:21 +01:00
Willy-JL
75d4cf36f1
JS: Custom scope param in load() typedef
2024-10-17 21:33:09 +01:00
Willy-JL
685e06b4d6
JS: Improve REPL script
2024-10-17 21:32:31 +01:00
Willy-JL
908461a3c2
JS: Add numpad keys to badusb typedefs
2024-10-17 17:11:27 +01:00
Willy-JL
73b53ee3f9
JS: Add way to check if view has prop
2024-10-17 17:00:08 +01:00
MX
e2d0a86d3e
merge js stuff
...
by Willy-JL
2024-10-17 17:06:51 +03:00
Willy-JL
5d2bb9af5e
JS: Backport file picker as new module
2024-10-16 19:35:42 +01:00
Willy-JL
d9d06b9a2b
JS: Backport virtualMount storage API
2024-10-16 18:16:27 +01:00
MX
521b793011
merge js 2
2024-10-16 18:09:02 +03:00
MX
38fb892cbb
merge js upds 1
2024-10-16 18:07:58 +03:00
Willy-JL
75ebfdb4fe
JS: Fix toString() with negative numbers
2024-10-16 15:11:56 +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
MX
cd46d8ca07
more js stuff
...
https://github.com/Next-Flip/Momentum-Firmware/commits/js-backport-of-backport/
2024-10-16 15:09:51 +03:00
MX
f37799e0f4
merge examples fixes [ci skip]
...
by Willy-JL
p2
2024-10-16 14:50:05 +03:00
Willy-JL
6b4e94ec58
JS: More fixes
2024-10-16 11:53:07 +01:00
Willy-JL
f5e4b4bef4
JS: Types for chr(), .indexOf(), .slice()
2024-10-16 11:52:44 +01:00
Willy-JL
270e97ff66
JS: Update storage example
2024-10-16 11:32:01 +01:00
MX
63d1890156
merge missing js backports of backports by Willy-JL
...
p1
2024-10-16 12:03:31 +03: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
f8596638ae
JS: Docs and types for additions on top of OFW modules
2024-10-16 05:25:01 +01:00
Willy-JL
c8b3bf1869
JS: camelCase changes
2024-10-16 01:55:00 +01:00