Skip to content

Commit

Permalink
format and minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zinongli committed Aug 4, 2024
1 parent e479621 commit 0f3110e
Show file tree
Hide file tree
Showing 7 changed files with 220 additions and 169 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Key Copier App [WORK IN PROGRESS]
- This app allows one to draw a contour around a physical key by overlaying the key on top of the Flipper zero's screen.
- To use it, go to Measure, and place your key on top of the screen. Align the key with the contour on the screen. Adjust the bitting depths for each pin until the contour matches the key. The number shown on the top left corner will be the bitting pattern of this key.
- Graphic tutorial coming up soon.
## Measure
# Key Copier App

## Overview

This application has three submenu items:
* Measure
- Use the left and right button to move around pins.
- Use the up and down button to adjust the depth of the bitting.
## Config
* Config
- There are currently two key formats to choose from: Kwikset (KW1) and Schlage (SC4).
- Save the key bitting pattern to a .keycopy file.
## About
- The key name is reserved for future development of the file saving feature.
* About
- Key Maker App 0.1
- Based on Derek Jamison's Skeleton App
- Project channel: https://discord.gg/BwNar4pAQ9
Expand Down
4 changes: 3 additions & 1 deletion application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ App(
fap_icon="icon.png",
fap_category="Tools",
fap_icon_assets="assets",
fap_description="This is the key copier app.",
fap_description="@README.md",
fap_version="0.3",
fap_author="Torron"
)
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
356 changes: 199 additions & 157 deletions key_copier.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion key_copier.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define KEY_COPIER_FILE_NAME_SIZE 25
#define KEY_COPIER_APPS_DATA_FOLDER EXT_PATH("apps_data")
#define KEY_COPIER_SAVE_FOLDER EXT_PATH("apps_data/key_copier")
#define KEY_COPIER_SAVE_EXTENSION ".key"
#define KEY_COPIER_SAVE_EXTENSION ".keycopy"
8 changes: 6 additions & 2 deletions key_formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// angle is in degrees
const KeyFormat all_formats[] = {
{
.format_name = "Kwikset KW1",
.format_name = "Kwikset",
.format_short_name = "KW1",
.format_link = "https://lsamichigan.org/Tech/Kwikset_KeySpecs.pdf",
.first_pin_inch = 0.247,
.last_pin_inch = 0.847,
.pin_increment_inch = 0.15,
Expand All @@ -20,7 +22,9 @@ const KeyFormat all_formats[] = {
},

{
.format_name = "Schlage SC4",
.format_name = "Schlage",
.format_short_name = "SC4",
.format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
.first_pin_inch = 0.231,
.last_pin_inch = 1.012,
.pin_increment_inch = 0.1562,
Expand Down
2 changes: 2 additions & 0 deletions key_formats.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

typedef struct {
char* format_name;
char* format_short_name;
char* format_link;

double first_pin_inch;
double last_pin_inch;
Expand Down

0 comments on commit 0f3110e

Please sign in to comment.