Skip to content

Commit

Permalink
training files outdated, use firmware examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamisonderek committed Oct 22, 2024
1 parent e41d57c commit 4f415d2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 431 deletions.
1 change: 1 addition & 0 deletions js/ai/intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Flipper Zero JavaScript is based on the mJS engine, which is fairly restricted.
- You cannot do string interpolation with the `$`.
- You must use `let Math = require("math");` if you need access to any of the Math functions.
- You must use `to_string` to convert numerics (like integer and float) into a string.
- To use the `gpio` module you must do... let eventLoop = require("event_loop"); let gpio = require("gpio");
- When keyboard.text display the on-screen keyboard, it covers the entire screen (so you can't see any previously printed information).
- All files are stored on the SD Card under the `/ext/` subdirectory.
- Delays are always measured in milliseconds and use the built-in `delay` function.
Expand Down
6 changes: 4 additions & 2 deletions js/ai/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ This project was tested with [ChatGPT-4o](https://chatgpt.com/?model=gpt-4o). T
## Directions
- Step 1. Open [Chatgpt.com](https://chatgpt.com/?model=gpt-4o) and make sure you have `ChatGPT-4o` selected.
- Step 2. Copy the contents of [intro.txt](./intro.txt) into the Message window of Chat.
- Step 3. Drag the train*.js files into the Message window.
- Step 3. Drag the example script files from your firmware into the Message window.
- [Momentum](https://github.com/Next-Flip/Momentum-Firmware/tree/dev/applications/system/js_app/examples/apps/Scripts/Examples)
- [Official](https://github.com/flipperdevices/flipperzero-firmware/tree/dev/applications/system/js_app/examples/apps/Scripts)
- Step 4. Press `Ctrl`+`Enter` to get a blank line.
- Step 5. Request a script to do some feature for the Flipper Zero! Be sure you request something that is in [Supported Capabilities](https://github.com/jamisonderek/flipper-zero-tutorials/wiki/JavaScript#capabilities) of JavaScript; or at least not in the [Not Supported](https://github.com/jamisonderek/flipper-zero-tutorials/wiki/JavaScript#not-supported) for the best results.
Example: "Create a JavaScript program for the Flipper Zero that prints 'Hello World' on the screen."
Expand All @@ -29,7 +31,7 @@ If program runs, but does not give expected result...
Tell ChatGPT the result you got and the expected result.

## Support
If you have any questions, please ask in my [Flipper Zero Discord](https://discord.com/invite/NsjCvqwPAd) server. There are also giveaways and other fun things happening there.
If you have any questions, please reach out to me on Discord (@CodeAllNight) or tag me in any of the Flipper Zero Discord servers.

Support my work:
- Option 1. [Like, Subscribe and click the Bell (to get notified)](https://youtu.be/DAUQGeG4pc4)
Expand Down
303 changes: 0 additions & 303 deletions js/ai/train.js

This file was deleted.

50 changes: 0 additions & 50 deletions js/ai/train2.js

This file was deleted.

Loading

0 comments on commit 4f415d2

Please sign in to comment.