SpenserCai 10 mesi fa
parent
commit
5578d32232
3 ha cambiato i file con 18 aggiunte e 2 eliminazioni
  1. BIN
      .DS_Store
  2. 3 2
      scenes/subbrute_scene_setup_extra.c
  3. 15 0
      subbrute_protocols.c

BIN
.DS_Store


+ 3 - 2
scenes/subbrute_scene_setup_extra.c

@@ -181,8 +181,9 @@ static void setup_extra_te_callback(VariableItem* item) {
     }
     }
 }
 }
 
 
-const char* const opencode_names[] = {"0001", "0010", "0100", "1000"};
-const uint8_t opencode_values[COUNT_OF(opencode_names)] = {0, 1, 2, 3};
+const char* const opencode_names[] =
+    {"0001", "0010", "0100", "1000", "1100", "0F00", "00F0", "F000", "1001"};
+const uint8_t opencode_values[COUNT_OF(opencode_names)] = {0, 1, 2, 3, 4, 5, 6, 7, 8};
 
 
 static void setup_extra_opencode_callback(VariableItem* item) {
 static void setup_extra_opencode_callback(VariableItem* item) {
     furi_assert(item);
     furi_assert(item);

+ 15 - 0
subbrute_protocols.c

@@ -763,6 +763,21 @@ void subbrute_protocol_create_candidate_for_default(
         if(opencode_var == 3) {
         if(opencode_var == 3) {
             gate_pt2262 = 0xC0; // 1000 PT2262常见抬杆码192
             gate_pt2262 = 0xC0; // 1000 PT2262常见抬杆码192
         }
         }
+        if(opencode_var == 4) {
+            gate_pt2262 = 0xF0; // 1100 PT2262常见抬杆码240
+        }
+        if(opencode_var == 5) {
+            gate_pt2262 = 0x10; // 0F00 PT2262常见抬杆码16
+        }
+        if(opencode_var == 6) {
+            gate_pt2262 = 0x04; // 00F0 PT2262常见抬杆码4
+        }
+        if(opencode_var == 7) {
+            gate_pt2262 = 0x40; // F000 PT2262常见抬杆码64
+        }
+        if(opencode_var == 8) {
+            gate_pt2262 = 0xC3; // 1001 PT2262常见抬杆码195
+        }
         for(size_t j = 0; j < 8; j++) {
         for(size_t j = 0; j < 8; j++) {
             total |= lut_pt2262[step % 3] << (2 * j);
             total |= lut_pt2262[step % 3] << (2 * j);
             double sub_step = (double)step / 3;
             double sub_step = (double)step / 3;