1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

unirf update

allow selecting custom map files
This commit is contained in:
MX
2022-07-29 21:18:06 +03:00
parent bf088dd585
commit aa757eeb49
6 changed files with 137 additions and 321 deletions

View File

@@ -1,32 +1,31 @@
# UniRF Remix
### The UniRF Tool *requires* the following manual changes be made to the `universal_rf_map` file in the `subghz/assets` folder located on the sdcard.
### The UniRF Tool *requires* the creation of custom user map with `.txt` extension in the `unirf` folder on the sdcard.
#### If these custom changes are not made, **you will receive an error each time you try to run the UniRF Tool**.
#### If these files are not exist or not configured properly, **you will receive an error each time you try to select wrong file in the UniRF Tool**.
## You can add as many `.txt` map files as you want, file name doesn't matter!
### App currenty works only with RAW subghz files
## Incorrect or unconfigured file error
If the `universal_rf_map` file has not been properly configured, the following error will be thrown when trying to run the UniRF Remix app:
If the `.txt` file has not been properly configured, the following error will be thrown when trying to run the UniRF Remix app:
```
Config is incorrect.
Invalid map file!
Please configure
universal_rf_map
Please reconfigure
your map file.
Hold Back to Exit
```
### **Update: Now you can create file with `.txt` extension `subghz/assets/universal_rf_map.txt`**
#### **So it can be edited without PC, app looks for this file first, if no `universal_rf_map.txt` file found, standard file will be used**
## Setting up the `subghz/assets/universal_rf_map` file:
## Setting up the `unirf/example.txt` file:
```
Filetype: Flipper SubGhz RAW File
Version: 1
UP: /ext/subghz/Up.sub
DOWN: /ext/subghz/Down.sub
LEFT: /ext/subghz/Left.sub
@@ -46,8 +45,6 @@ The ULABEL/DLABEL/LLABEL/RLABEL/OKLABEL variables should be set to the text to b
## Example:
```
Filetype: Flipper SubGhz RAW File
Version: 1
UP: /ext/subghz/Fan1.sub
DOWN: /ext/subghz/Fan2.sub
LEFT: /ext/subghz/Door.sub
@@ -69,9 +66,6 @@ OKLABEL: Garage CLOSE
- No skip function.
* ##### Universal RF Map
- Backwards compatible with [jimilinuxguy Universal RF Remote](https://github.com/jimilinuxguy/flipperzero-universal-rf-remote) map file. You should be able to use the map file as is with both versions.
- Recommend that you update the map file (if you using "jimilinuxguy's Universal RF" file) to the version included in this repo.
- You can also create file with `.txt` extension `subghz/assets/universal_rf_map.txt` and this file will be used instead of default file
- File path should not have any spaces or special characters (- and _ excluded).
- Labels are limited to 12 characters.
- Why? This is to prevent overlapping elements on screen.