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

Squashed 'airmouse/' changes from abac5b58a..872ed96e1

872ed96e1 update apps
f80911f7f move apps
REVERT: abac5b58a Update CHANGELOG.md
REVERT: c5d1b5ec3 Update Changelog
REVERT: 06b91a0c5 Fix Rotation return value
REVERT: 9d4f47be9 Improve tracking loop encapsulation
REVERT: 9a580e52f Fix NULL pointer dereference
REVERT: f383c5f49 Merge pull request #12 from hedger/patch-1
REVERT: b04701c7d Updated category
REVERT: ec6b60147 Updated verison in application.fam
REVERT: 1006df3ad Update application.fam
REVERT: de2050d18 Fix icon
REVERT: a497f2fab Update DESCRIPTION.md
REVERT: 0b2731888 Update DESCRIPTION.md
REVERT: 8e298b8be Update CHANGELOG.md
REVERT: 1c535dedb Update DESCRIPTION.md
REVERT: 8412b23d2 Create DESCRIPTION.md
REVERT: 66f145b0e Update application.fam
REVERT: 5376c6414 Add files via upload
REVERT: 3d3effc2f Delete icon.png
REVERT: 91ee0a158 Update application.fam
REVERT: 2a37fa650 Add icon
REVERT: e001a1f0f Add screenshots
REVERT: 2ee8fa0f8 Create CHANGELOG.md
REVERT: a4dbeb5cd Remove unneeded line
REVERT: c805b7da8 Update download link
REVERT: 5e2c1f895 Merge pull request #6 from playmean/fam_sources
REVERT: 8f2eefcc7 Application .fap download badge
REVERT: 1942ea983 Specifying sources for building in manifest
REVERT: 98b5f70bb Fix components in BOM
REVERT: 42607a0ea Update README.md
REVERT: 01e960d0a Update README.md
REVERT: 05c5f4527 Format and make scrolling more intuitive
REVERT: 6f45b0e34 Merge pull request #3 from rorosaurus/main
REVERT: 08b94b14d fix button direction to match flipper orientation
REVERT: 7007db8d5 adjust button function (add scrolling)
REVERT: 971a8f63d Use threading in Bluetooth mode to improve responsiveness
REVERT: 4966e1f8a Update README.md
REVERT: 121b01ed5 Update README.md
REVERT: fd8fc09ea Update README.md
REVERT: 136c61aba Update README.md
REVERT: 4f4da2fbb Nits
REVERT: e2ca3ce88 Update README.md
REVERT: 2ff9b9227 Update README.md
REVERT: 886e93f25 Add some notes
REVERT: c685c3be5 fbt format, switch to bmi160
REVERT: 1954e3bd3 fbt format everything
REVERT: 0553ae1a3 Initial commit
REVERT: 3930cc1d2 Initial commit

git-subtree-dir: airmouse
git-subtree-split: 872ed96e1f7b85ed25028aae8c8fc3a341723a65
Willy-JL 2 лет назад
Родитель
Сommit
a2cec02be8

+ 0 - 35
CHANGELOG.md

@@ -1,35 +0,0 @@
-# Changelog
-
-## v0.0.6 (2023-08-09)
-
-**Fix firmware 0.88 issues**
-
-## v0.0.5 (2023-06-18)
-
-**Closed issues:**
-
-- Error on firmware 0.77.1
-- Flipper Z with airmouse like LG pilot on Android TV
-- PINOUT
-- Noob Question
-- BMI160 alternative?
-
-## v0.0.4 (2023-01-22)
-
-**Closed issues:**
-
-- Request: change directional buttons
-
-**Merged pull requests:**
-
-- Manifest build sources
-
-## v0.0.3 (2022-12-30)
-
-**Closed issues:**
-
-- Firmware requirement?
-
-**Merged pull requests:**
-
-- adjust button function \(add scrolling\)

+ 0 - 29
DESCRIPTION.md

@@ -1,29 +0,0 @@
-# Flipper Air Mouse
-
-## What?
-
-The app allows you to turn your Flipper into a USB or Bluetooth air mouse (you do need an extra module, see the Hardware section below)...
-
-Using it is really simple:
- * Connect the Flipper via a USB cable and pick USB, or pick Bluetooth and pair it with your PC;
- * Hold the Flipper in your hand with the buttons pointing towards the screen;
- * Wave your Flipper like you don't care to move the cursor;
- * Up button for Left mouse click;
- * Down button for Right mouse click;
- * Center button for Middle mouse click;
- * Left and Right buttons for scrolling;
- * Use calibration menu option if you notice significant drift (place your Flipper onto a level surface, make sure it doesn't move, run this option, wait 2 seconds, done).
-
-## Hardware
-
-The custom module is using Bosch BMI160 accelerometer/gyroscope chip connected via I2C.
-
-Take a look into the schematic folder for Gerber, BOM and CPL files, so you can order directly from JLCPCB.
-
-## Software
-
-The code is based on the original Bosch driver and an orientation tracking implementation from the Google Cardboard project
-
-## License
-
-TL;DR: Use the code however you want, give credit where it's due, no warranty of any kind is provided.

+ 0 - 2
README.md

@@ -1,7 +1,5 @@
 # Flipper Air Mouse
 
-[![FlipC.org](https://flipc.org/ginkage/FlippAirMouse/badge)](https://flipc.org/ginkage/FlippAirMouse)
-
 ## Brief
 
 > "You can turn anything into an air mouse if you're brave enough"

+ 0 - 2
air_mouse.c

@@ -1,8 +1,6 @@
 #include "air_mouse.h"
 
 #include <furi.h>
-#include <dolphin/dolphin.h>
-
 #include "tracking/imu/imu.h"
 
 #define TAG "AirMouseApp"

+ 2 - 2
application.fam

@@ -1,11 +1,11 @@
 App(
     appid="air_mouse",
-    name="Air Mouse",
+    name="[BMI160] Air Mouse",
     apptype=FlipperAppType.EXTERNAL,
     entry_point="air_mouse_app",
     stack_size=10 * 1024,
     fap_category="GPIO",
-    fap_icon="icon.png",
+    fap_icon="mouse_10px.png",
     fap_version="0.8",
     sources=["*.c", "*.cc"],
 )


BIN
mouse_10px.png


+ 0 - 5
schematic/airmouse_bom.csv

@@ -1,5 +0,0 @@
-ID	Name	Designator	Footprint	Quantity	Manufacturer Part	Manufacturer	Supplier	Supplier Part	Price
-"1"	"100nF"	"C1"	"C0603"	"1"	"CC0603KRX7R9BB104"	"YAGEO"	"LCSC"	"C14663"	""
-"2"	"Header-Male-2.54_1x10"	"H1"	"HDR-TH_10P-P2.54-V-M-1"	"1"	"Headers  Pins2.54mm1*10P"	""	"LCSC"	"C57369"	""
-"3"	"3.9kΩ"	"R1,R2,R3,R4"	"R0603"	"4"	"0603WAF3901T5E"	"UNI-ROYAL(Uniroyal Elec)"	"LCSC"	"C23018"	""
-"4"	"BMI160"	"U1"	"LGA-14_L3.0-W2.5-P0.50-BL"	"1"	"BMI160"	"Bosch"	"LCSC"	"C94021"	""

+ 0 - 8
schematic/airmouse_cpl.csv

@@ -1,8 +0,0 @@
-Designator	Footprint	Mid X	Mid Y	Ref X	Ref Y	Pad X	Pad Y	Layer	Rotation	Comment
-"C1"	"C0603"	"22.86mm"	"-6.86mm"	"22.86mm"	"-6.86mm"	"22.16mm"	"-6.86mm"	"T"	"0"	"100nF"
-"H1"	"HDR-TH_10P-P2.54-V-M-1"	"13.97mm"	"-2.54mm"	"13.97mm"	"-2.54mm"	"25.4mm"	"-2.54mm"	"B"	"180"	"Header-Male-2.54_1x10"
-"R1"	"R0603"	"7.62mm"	"-6.86mm"	"7.62mm"	"-6.86mm"	"7.62mm"	"-7.61mm"	"T"	"90"	"3.9kΩ"
-"R2"	"R0603"	"5.08mm"	"-6.86mm"	"5.08mm"	"-6.86mm"	"5.08mm"	"-7.61mm"	"T"	"90"	"3.9kΩ"
-"R3"	"R0603"	"10.16mm"	"-6.86mm"	"10.16mm"	"-6.86mm"	"10.16mm"	"-7.61mm"	"T"	"90"	"3.9kΩ"
-"R4"	"R0603"	"17.78mm"	"-6.86mm"	"17.78mm"	"-6.86mm"	"17.78mm"	"-6.1mm"	"T"	"270"	"3.9kΩ"
-"U1"	"LGA-14_L3.0-W2.5-P0.50-BL"	"13.97mm"	"-6.86mm"	"13.97mm"	"-6.86mm"	"12.58mm"	"-6.11mm"	"T"	"270"	"BMI160"

BIN
schematic/airmouse_gerber.zip


BIN
schematic/flipper.jpg


BIN
schematic/render.png


BIN
schematic/schematic.png


BIN
screenshot1.png


BIN
screenshot2.png


BIN
screenshot3.png


+ 1 - 1
tracking/calibration_data.h

@@ -8,7 +8,7 @@
 
 #define CALIBRATION_DATA_VER (1)
 #define CALIBRATION_DATA_FILE_NAME ".calibration.data"
-#define CALIBRATION_DATA_PATH INT_PATH(CALIBRATION_DATA_FILE_NAME)
+#define CALIBRATION_DATA_PATH EXT_PATH(CALIBRATION_DATA_FILE_NAME)
 #define CALIBRATION_DATA_MAGIC (0x23)
 
 #define CALIBRATION_DATA_SAVE(x)   \