Просмотр исходного кода

Squashed 'wire_tester/' changes from 00c44029d..311a32664

311a32664 fixing some big bugs
9508df0aa add new apps and replace text viewer
REVERT: 00c44029d Updated description
REVERT: 780b85830 Improved app background and added screenshot
REVERT: c0b3fb7e1 Added program and assets

git-subtree-dir: wire_tester
git-subtree-split: 311a32664dcd321bcd6a3f45da75ff1e73ab04cc
Willy-JL 2 лет назад
Родитель
Сommit
a3a858e66a
3 измененных файлов с 46 добавлено и 0 удалено
  1. 25 0
      LICENSE
  2. 20 0
      README.md
  3. 1 0
      wire_tester.c

+ 25 - 0
LICENSE

@@ -0,0 +1,25 @@
+BSD 2-Clause License
+
+Copyright (c) 2023, Blaine Murphy
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+ 20 - 0
README.md

@@ -0,0 +1,20 @@
+# Flipper Wire Tester
+This is a simple Flipper Zero app that beeps if a wire is continuous.
+
+![Screenshot](screen_1.png)
+
+## Installation
+Copy the `wire_tester` directory to the `applications_user` directory of your
+favorite firmware. Run `./fbt launch APPSRC=applications_user/wire_tester` to
+install and start the application on your Flipper.
+
+
+## Usage
+Find the app under `Apps` -> `GPIO` -> `[GPIO] Wire Tester` and launch it. Test
+a wire by connecting it to pins 6 and 8. If the wire is continuous, you will
+see the LED turn green and the flipper will beep.
+
+
+## Licensing
+Source in this repository is licensed under the 2-clause BSD license, see
+`LICENSE` for details.

+ 1 - 0
wire_tester.c

@@ -93,6 +93,7 @@ int32_t app_main(void* p) {
                 running = false;
                 running = false;
             }
             }
         }
         }
+        view_port_update(view_port);
     }
     }
 
 
     // return control of the LED, beeper, and backlight
     // return control of the LED, beeper, and backlight