diff --git a/README.rst b/README.rst index f935d24..15104c8 100644 --- a/README.rst +++ b/README.rst @@ -265,3 +265,7 @@ application (and the "blank" white screen is a torch application): .. image:: res/BeaconApp.png :alt: Flash the relatively powerful HRS LED repeatedly :width: 179 + +.. image:: res/FinderApp.png + :alt: Find your phone by causing it to ring + :width: 179 diff --git a/apps/PhoneFinder.py b/apps/PhoneFinder.py new file mode 100644 index 0000000..f53aaa7 --- /dev/null +++ b/apps/PhoneFinder.py @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: LGPL-3.0-or-later +# Copyright (C) 2023 Adam Blair +"""Phone finder application +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +An application to find a phone connected via Gadgetbridge. + + .. figure:: res/FinderApp.png + :width: 179 + + Screenshot of the Phone Finder Application + +""" + +import wasp +import fonts +import widgets +from gadgetbridge import send_cmd + +# 2-bit RLE, 96x64, generated from res/phone_finder_icon.png, 403 bytes +icon = ( + b'\x02' + b'`@' + b'?\xff\xff\x87@\xd0G?\x17C\x07C?\x12B\r' + b'B?\x0fA\x11A?\rA\x13A?\x0bA\x15A' + b'?\tA?\x1fA!\x80\xb4\x84:A\rG\r\x84' + b'9A\x0cB\x07B?\tA\x0bA\x0bA?\x08A' + b'\nA\rA\t\x848A\nA\x18\x848A\tA' + b'\tD\x0c\x848A\x08A\x08B\x04B\n\x848A' + b'\x08A\x06B\x08A\t\x848A\x07A\x06A\x14A' + b'\x838A\x07A\x06A\x01A\x91B\x83A7A\x07' + b'A\x05A\x01A\x98A7A\x06A\x05A\x01\x82\x16' + b'\x827A\x06A\x04A\x02\x82\x04N\x04\x827A\x06' + b'A\x04A\x02\x82\x04N\x04\x828A\x05A\x04A\x02' + b'\x82\x04N\x04\x828A\x06A\x03A\x02\x82\x16\x829' + b'A\x05A\x04A\x01\x82\x02R\x02\x82:A\x05A\x03' + b'A\x01\x82\x02R\x02\x82;A\x05A\x03A\x82\x02R' + b'\x02\x82