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
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
Willy-JL
d4cd06816c
JS: Add badusb layout support
2024-04-05 05:33:43 +01: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
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
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
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
Willy-JL
5b1002e433
JS: Add dialog.pickFile()
2024-03-14 02:29:48 +00:00
Willy-JL
66dc7e9aa9
JS: Add storage.append()
2024-03-12 06:15:09 +00:00
Sil333033
d947fa749a
JS: added GPIO module
2024-03-11 20:58:14 +01:00
Spooks
8e97587c68
Made String Functions Global
2024-03-10 13:20:42 -06:00
Spooks
5fff187ff5
Merge branch 'Next-Flip:dev' into dev
2024-03-07 16:38:35 -07:00
Spooks
cb04c86fb2
String Util Library + ParseInt Function
2024-03-07 16:38:06 -07:00
Sil333033
6420e5b37e
Merge branch 'dev' of https://github.com/Next-Flip/Momentum-Firmware into dev
2024-03-07 22:17:03 +01:00
Sil333033
ab9d4620db
Add Subghz JS module
2024-03-07 22:15:14 +01:00
Willy-JL
724be02ee5
JS: Blebeacon: Add isActive(), fix some state logic
2024-03-07 19:35:45 +00:00
Willy-JL
eedeee4941
JS Blebeacon keep/not prev cfg, use arraybuf, more options
2024-03-07 07:44:11 +00:00
Willy-JL
03f780f43c
Use correct array buf for js byte keyboard
2024-03-07 06:20:14 +00:00
Willy-JL
0405849ca6
JS Keyboard add setHeader()
2024-03-07 05:59:33 +00:00
Willy-JL
bf8e1845f0
JS Keyboard improve memory and error handling
2024-03-07 05:53:03 +00:00
Willy-JL
be014b5103
Small JS bindings tweaks
...
- no destroy for math
- tweak example print results
- namespace naming consistency
2024-03-07 05:15:01 +00:00
Spooks
337486df87
Update blebeacon.js
2024-03-06 15:48:53 -07:00
Spooks
2ff6dc8c1d
Keyboard WIP (Byte Input Doesn't Work)
2024-03-06 15:02:00 -07:00
Spooks
c43d9d3bdd
Math
2024-03-06 11:03:26 -07:00
Spooks
913127854c
Moved Mac Address Gen to API
2024-03-06 02:05:03 -07:00
Spooks
ab9c10c436
Added Ble Beacon
2024-03-05 23:59:06 -07:00
Spooks
ff4fcfc132
JS: Added Submenu support ( #13 )
2024-03-06 03:20:52 +00:00
Spooks
f92a94a78a
JS: Added Submenu support
2024-03-05 20:17:00 -07:00
Willy-JL
e2ab71e1d3
JS: Add basic storage module API
2024-02-22 03:12:59 +00:00
Willy-JL
bcc78a5c38
JS: Create disk image with usbdisk.createImage("/ext/file", 123)
2024-02-20 03:43:28 +00:00
Willy-JL
7288499d13
Js BadUSB add quit() function to switch with UsbDisk
2024-02-16 05:34:32 +00:00