diff --git a/.DS_Store b/.DS_Store index cafadc3..9644263 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..87cd124 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,40 @@ +## 1.2 + +Fixed the bug where the user block number is incorrectly handled throughout the app's saving and loading functions. Also updated the wording in configuration to be more accurate. + +## 1.1 + +There's no functional update in this version. Only some tweaks. +1. The block number iterator was updated but then @Willy-JL noticed it causes more trouble so it was reverted. +2. The writing success screen now uses up-to-date system icon. The changes was made by @Willy-JL in his app catalog. +3. The functions that handle file format and directory are updated to use OFW's built-in functions instead of the old manual method. Thank @augustozanellato for introducing me to these functions. This wouldn't affect functionality. However, the .t5577 files in previous versions wouldn't be supported in this update. Please use the updated example 'examples/Tag_1.t5577' as reference. The main change is parsing the 8-digit hex block data into 4 bytes. +4. Added Github workflow to check build each time a new commit is made. This was copied from @xtruan 's [PR](https://github.com/zinongli/KeyCopier/pull/5) to my other app. + +What's Changed +* Update t5577_writer.c by @Moon-Byeong-heui in https://github.com/zinongli/T5577_Raw_Writer/pull/8 +* Revert "Update t5577_writer.c" by @zinongli in https://github.com/zinongli/T5577_Raw_Writer/pull/9 +* Use Stock Functions to Achieve Directory and Flipper Format functions by @zinongli in https://github.com/zinongli/T5577_Raw_Writer/pull/10 + +New Contributors +* @Moon-Byeong-heui made their first contribution in https://github.com/zinongli/T5577_Raw_Writer/pull/8 + +**Full Changelog**: https://github.com/zinongli/T5577_Raw_Writer/compare/v1.0...v1.1 + +## 1.0 + +The app is fully functional now. It supports writing and editing manually on the flipper along side all the previous features. +Note: this app is built with API 69.0 on OFW 0.104.0 release. + +## 0.1 + +Basic functions are all ready. +Users can write to their T5577. +They can configure the modulation, RF clock, and block number using the configuration menu. +They can save the current file. +They can load an existing file. + +The function to add block 1-7 data is still being developped. +For now, users would have to write their own raw data using the data file template. +Put it into apps_data/t5577_writer folder, load it inside the app, and write onto a T5577 fob. + +To install, download the following .fap file, drag the .fap into your Flipper Zero's apps/RFID folder, and start writing! diff --git a/README.md b/README.md index 633db1f..94e77a6 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ # T5577 Raw Writer App An easy to use T5577 raw writer app for Flipper Zero. [Discord project page.](https://discord.com/channels/1211622338198765599/1267190551783018659) -## Instruction: +## Instruction -Configure the modulation, RF Clock, number of blocks, and block data in the `Config` menu. +Configure the modulation, RF Clock, number of blocks, and block data in the 'Config' menu. -Or, you can load a .t5577 file into the app and write it. An example file can be found [here](https://github.com/zinongli/T5577_Raw_Writer/blob/b8f459c787802a443b2a943250b2ad8249f7c0ea/examples/Tag_1.t5577). The configuration will be automatically loaded from block 0 data. +Or, you can load a .t5577 file into the app and write it. An example file can be found [here](https://github.com/zinongli/T5577_Raw_Writer/blob/main/examples/Tag_1.t5577). The configuration will be automatically loaded from block 0 data. The texts like: -`Modulation: ASK/MC -RF Clock: 64 -Number of User Blocks: 8` -in the .t5577 files are derived from the block 0 data when saved. So if you want to adjust the configuration, you can simply edit block 0 data, without having to edit the text in the file. Or, you can load the data directly and adjust the configuration in the app before writing tags. -You can also save the data you've just loaded and/or configured. +'Modulation: ASK/MC' + +'RF Clock: 64' -## To-Do: +'Number of User Blocks: 8' -- [ ] Edit the directory handling into using OFW built-in functions storage_simply_mkdir. Also Flipper format. Credit auguzanellato. +in the .t5577 files are derived from the block 0 data when saved. So if you want to adjust the configuration, you can simply edit block 0 data. Or, you can load the data directly and adjust the configuration in the app before writing tags. Editing the texts mentioned above wouldn't work. + +You can also save the data you've just loaded and/or configured. -## Special Thanks: +## Special Thanks Thank [@jamisonderek](https://github.com/jamisonderek) for his [Flipper Zero Tutorial repository](https://github.com/jamisonderek/flipper-zero-tutorials) and [YouTube channel](https://github.com/jamisonderek/flipper-zero-tutorials#:~:text=YouTube%3A%20%40MrDerekJamison)! This app is built with his Skeleton App and GPIO Wiegand app as references. diff --git a/application.fam b/application.fam index 45c2c22..a98ae52 100644 --- a/application.fam +++ b/application.fam @@ -12,6 +12,6 @@ App( fap_category="RFID", fap_icon_assets="assets", fap_description="@README.md", - fap_version="0.1", + fap_version="1.2", fap_author="Torron" ) diff --git a/examples/Tag_1.t5577 b/examples/Tag_1.t5577 index 91a822d..d5d6c8d 100644 --- a/examples/Tag_1.t5577 +++ b/examples/Tag_1.t5577 @@ -2,7 +2,7 @@ Filetype: Flipper T5577 Raw File Version: 2 Modulation: FSK2a RF Clock: 64 -Number of User Blocks: 8 +Max User Block: 7 Raw Data: Block 0: 00 14 70 E0 Block 1: 11 12 13 14 diff --git a/screenshots/about.png b/screenshots/about.png new file mode 100644 index 0000000..b1b3de3 Binary files /dev/null and b/screenshots/about.png differ diff --git a/screenshots/config_1.png b/screenshots/config_1.png new file mode 100644 index 0000000..3ab4097 Binary files /dev/null and b/screenshots/config_1.png differ diff --git a/screenshots/config_2.png b/screenshots/config_2.png new file mode 100644 index 0000000..5a99334 Binary files /dev/null and b/screenshots/config_2.png differ diff --git a/screenshots/load.png b/screenshots/load.png new file mode 100644 index 0000000..e57bee3 Binary files /dev/null and b/screenshots/load.png differ diff --git a/screenshots/main_menu.png b/screenshots/main_menu.png new file mode 100644 index 0000000..01d6306 Binary files /dev/null and b/screenshots/main_menu.png differ diff --git a/screenshots/writing.png b/screenshots/writing.png new file mode 100644 index 0000000..2c7309b Binary files /dev/null and b/screenshots/writing.png differ diff --git a/t5577_writer.c b/t5577_writer.c index 87b805f..5791b7c 100644 --- a/t5577_writer.c +++ b/t5577_writer.c @@ -717,7 +717,7 @@ static T5577WriterApp* t5577_writer_app_alloc() { 0, 128, 64, - "T5577 Raw Writer v0.1\n\nAuthor: @Torron\n\nGithub: https://github.com/zinongli/T5577_Raw_Writer"); + "T5577 Raw Writer v1.2\n\nAuthor: @Torron\n\nGithub: https://github.com/zinongli/T5577_Raw_Writer"); view_set_previous_callback( widget_get_view(app->widget_about), t5577_writer_navigation_submenu_callback); view_dispatcher_add_view(