WillyJL 1864a26b28 Better subtree scripts (#25) 1 năm trước cách đây
..
.github 798311b9b7 Add tone_gen from https://github.com/GEMISIS/tone_gen 1 năm trước cách đây
images 798311b9b7 Add tone_gen from https://github.com/GEMISIS/tone_gen 1 năm trước cách đây
screenshots 798311b9b7 Add tone_gen from https://github.com/GEMISIS/tone_gen 1 năm trước cách đây
src 51e73df592 Merge tone_gen from https://github.com/xMasterX/all-the-plugins 1 năm trước cách đây
.gitignore 798311b9b7 Add tone_gen from https://github.com/GEMISIS/tone_gen 1 năm trước cách đây
.gitsubtree 1864a26b28 Better subtree scripts (#25) 1 năm trước cách đây
LICENSE 798311b9b7 Add tone_gen from https://github.com/GEMISIS/tone_gen 1 năm trước cách đây
README.MD 798311b9b7 Add tone_gen from https://github.com/GEMISIS/tone_gen 1 năm trước cách đây
application.fam 798311b9b7 Add tone_gen from https://github.com/GEMISIS/tone_gen 1 năm trước cách đây
tone_gen.png 798311b9b7 Add tone_gen from https://github.com/GEMISIS/tone_gen 1 năm trước cách đây

README.MD

Tone Generator

This repo contains a simple application for the Flipper Zero that can generate a steady tone with a variety of user chosen settings. It's designed to be a simple application showcasing how to develop apps for the Flipper Zero, and get my hands dirty with doing so. It is written entirely in C, and is very simple in nature by design.

Dependencies

This project depends on uFBT for building. It is also recommended to install VSCode for ease of development, as well as minicom for debugging (brew install minicom).

App Source File Structure

The application is structured such that each scene can be self contained, with the sharing of data between scenes done via the app context. All of the scenes can be found with their corresponding source and header files in the src/scenes directory. The scenes do as follows:

  • Starting Scene: The scene where the application starts. This has the main menu options that users see when they start the app.
  • Playback Scene: The scene where the sound is played. Animates a waveform with the approximate shape of the sound being played.
  • Settings Scene: The scene where users can configure the tone's properties.

Note as well that the app context file is generic, and designed in such as way that it should not need to be updated for things specific to the application. This allows for an easier time to allow scenes to self manage, insteaed of having somewhere else that centrally manages everything.

Helpful Commands

  • ufbt: Builds the project
  • ufbt launch: Launches the project on a device. Make sure no other applications (including qFlipper) are connected to the device.
  • minicom -D /dev/tty.X: Replace X with the name of your flipper device when connected and then use this to start a command line interface to your flipper device. From there, you can run log debug to see debug logs from the app while it is running.