Commit Graph

100 Commits

Author SHA1 Message Date
Willy-JL
574304f715 Final merge fixes 2024-08-14 02:01:04 +02:00
Willy-JL
5f98c5d986 Merge remote-tracking branch 'ofw/dev' into yeet-lfs 2024-08-13 02:27:09 +02:00
Georgii Surkov
f4122a924a [FL-3841] FuriEventLoop Pt.2 (#3703)
* Abstract primitive type from main logic in FuriEventLoop
* Remove message_queue_i.h
* Add stream buffer support for event loop
* Add semaphore support for event loop
* Add temporary unit test workaround
* Make the linter happy
* Add mutex support for event loop
* Implement event subscription and unsubscription while the event loop is running
* Implement edge events
* Fix leftover logical errors
* Add event loop timer example application
* Implement flag-based edge trigger and one-shot mode
* Add event loop mutex example application
* Only notify the event loop if stream buffer is at or above its trigger level
* Reformat comments
* Add event loop stream buffer example application
* Add event loop multiple elements example application
* Improve event loop flag names
* Remove redundant signal handler as it is already handled by the event loop
* Refactor Power service, improve ViewHolder
* Use ViewHolder instead of ViewDispatcher in About app
* Enable ViewDispatcher queue on construction, deprecate view_dispatcher_enable_queue()
* Remove all invocations of view_dispatcher_enable_queue()
* Remove app-scened-template
* Remove missing library from target.json
* Port Accessor app to ViewHolder
* Make the linter happy
* Add example_view_holder application, update ViewHolder docs
* Add example_view_dispatcher application, update ViewDispatcher docs
* Replace FuriSemaphore with FuriApiLock, remove workaround delay
* Fix logical error
* Fix another logical error
* Use the sources directive to speed up compilation
* Use constant define macro
* Improve FuriEventLoop documentation
* Improve FuriEventLoop documentation once more
* Bump API Version
* Gui: remove redundant checks from ViewDispatcher
* Gui: remove dead ifs from ViewDispatcher

Co-authored-by: Silent <CookiePLMonster@users.noreply.github.com>
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2024-08-07 12:49:41 +09:00
Willy-JL
2eaf1ffc95 New formatting 2024-07-15 22:32:17 +01:00
Willy-JL
02f7207d28 Merge remote-tracking branch 'ofw/dev' into mntm-dev 2024-07-15 22:18:35 +01:00
hedger
ffa3996a5e [FL-3867] Code formatting update (#3765)
* clang-format: AllowShortEnumsOnASingleLine: false
* clang-format: InsertNewlineAtEOF: true
* clang-format: Standard:        c++20
* clang-format: AlignConsecutiveBitFields
* clang-format: AlignConsecutiveMacros
* clang-format: RemoveParentheses: ReturnStatement
* clang-format: RemoveSemicolon: true
* Restored RemoveParentheses: Leave, retained general changes for it
* formatting: fixed logging TAGs
* Formatting update for dev

Co-authored-by: あく <alleteam@gmail.com>
2024-07-15 13:38:49 +09:00
Willy-JL
22fd786abf JS: Fix repeats for multi-packet protocols 2024-07-09 16:23:20 +01: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
Willy-JL
0f4f844ff1 Format for toolchain 37, update changelog 2024-07-05 20:07:11 +02:00
Willy-JL
2c9303401c JS: Refactor keyboard with ViewHolder
Based on submenu refactor by nminaylov
2024-06-26 03:12:48 +02:00
Willy-JL
99a394b1d1 JS: Refactor widget with ViewHolder, fix crash
Based on textbox refactor by nminaylov
2024-06-26 03:12:14 +02: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
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