Commit Graph

89 Commits

Author SHA1 Message Date
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
23da827361 Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev 2024-06-04 03:03:23 +01:00
hedger
03196fa110 cleanup of various warnings from clangd (#3682)
* cleanup of various warnings from clangs
* lfrfid_debug: cast fixes
* subghz: binraw: round->roundf
* furi: thread: updated internal stack size variable to size_t
* github: fail faster on unsuccessful build
* unit_tests: double trouble
2024-06-03 14:43:23 +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
Willy-JL
54d2763177 Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev 2024-05-16 21:47:58 +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
a7a3ce8d4b JS: Add VGM module by @jamisonderek
Co-authored-by: Derek Jamison <jamisonderek@users.noreply.github.com>
2024-04-22 06:10:00 +01:00
Derek Jamison
17646cab37 JS: Fix widget sometimes MemCrash on exit. 2024-04-19 18:14:21 -05:00
Willy-JL
6c508779e2 JS: Fix badusb double free crash with quit() 2024-04-11 03:33:15 +01:00
Willy-JL
b8295a2dac JS: Fix default layout handling 2024-04-06 00:29:23 +01:00
Willy-JL
05745ac7a6 Oops (#75 #79) 2024-04-05 20:25:22 +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
2f06a01f64 JS: Fix storage.virtualQuit() not freeing file handle 2024-04-05 02:21:21 +01:00
Willy-JL
2e35332b23 JS: Fix Math.random()? 2024-04-02 16:22:17 +01:00
Willy-JL
37e958e3ce Add missing record close 2024-03-28 22:31:53 +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
Willy-JL
401ab0da1f JS: Fix badusb.quit() and serial.end() 2024-03-23 20:38:34 +00: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
Willy-JL
6a5354caca Naming fixes 2024-03-23 05:13:53 +00:00
Willy-JL
d610e20060 Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev 2024-03-21 02:07:27 +00:00
Gabe
702ab672bb Adding F13-F24 function key support to BadUSB (#3468)
* Adding F13-F24 function key support to BadUSB
* Adding F13-F24 function key support to JS version of BadUSB

Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2024-03-21 06:45:16 +09: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
1bf0d3ab9a JS: Improve badusb.altPrint() robustness 2024-03-19 04:41:12 +00:00
Willy-JL
4bd511c214 JS: Fix view dispatcher and header text bugs 2024-03-19 01:54:59 +00:00
oldip
4d1678a99a Improve ALT+Numpad typing simulation with adjustable delay AND Testing Completed 2024-03-18 23:14:06 +08:00
oldip
88a080c168 Remove the delay 2024-03-18 22:33:19 +08:00
oldip
23033095b1 Correctly defined js_badusb_altPrint function 2024-03-18 22:22:45 +08:00
oldip
eff99a6015 orrectly defined js_badusb_altPrint function 2024-03-18 22:21:15 +08:00
oldip
879d654f70 Function to simulate typing text using ALT key + Numpad ASCII code without adding a newline at the end 2024-03-18 22:15:25 +08:00
oldip
4737c3af8c Function to simulate typing text using ALT key + Numpad ASCII code without adding a newline at the end 2024-03-18 22:14:51 +08:00
oldip
a5a9292aa1 less delay 2024-03-18 22:11:05 +08:00
oldip
dbb0408f99 Construct the numpad key name 2024-03-18 21:56:56 +08:00
oldip
97a5022129 simulating key presses by converting each character to its ASCII code and then inputting it using the ALT+numeric keypad sequence 2024-03-18 21:52:50 +08:00
oldip
1bee1c7749 modify delay to 200ms 2024-03-18 19:08:13 +08:00
oldip
e09b39fccd add delay 2024-03-18 18:59:48 +08:00
oldip
728ed4d11a rewrite the js_badusb_altPrintln function and fix the missing pointer 2024-03-18 18:45:59 +08:00
oldip
e4b72c003e rewrite js_badusb_altPrintln function 2024-03-18 18:35:12 +08:00
oldip
68746193a0 Fix dynamic construction of NUMPAD keycodes in altPrintln 2024-03-18 16:01:13 +08:00
oldip
fc3a1f28b2 Adjusting the altPrintln functionality to release the ALT key after each character 2024-03-18 15:52:51 +08:00
oldip
e790ffad3a Fix snprintf truncation issue in altPrintln 2024-03-18 15:19:35 +08:00
Willy-JL
03499243a3 JS: Allow pressing back in Submenu 2024-03-17 20:51:42 +00:00
Willy-JL
c2deba8e2c JS: Fix weird string corruptions and usages 2024-03-17 20:48:00 +00:00