File tree Expand file tree Collapse file tree 5 files changed +64
-1
lines changed Expand file tree Collapse file tree 5 files changed +64
-1
lines changed Original file line number Diff line number Diff line change
1
+ #include " mx8650.h"
2
+
3
+ // SCLK: 13, SDIO: 11
4
+ MX8650 mouseController (13 , 11 );
5
+
6
+ void setup ()
7
+ {
8
+ Serial.begin (9600 );
9
+ Serial.println (" Initializing MX8650..." );
10
+ }
11
+
12
+ void loop ()
13
+ {
14
+ mouseController.setDPI (DPI_1600);
15
+ Serial.println (" DPI in use: " + mouseController.getDPI ());
16
+ }
Original file line number Diff line number Diff line change
1
+ #include " mx8650.h"
2
+
3
+ // SCLK: 13, SDIO: 11
4
+ MX8650 mouseController (13 , 11 );
5
+
6
+ void setup ()
7
+ {
8
+ Serial.begin (9600 );
9
+ Serial.println (" Initializing MX8650..." );
10
+ }
11
+
12
+ void loop ()
13
+ {
14
+ mouseController.Log ();
15
+ }
Original file line number Diff line number Diff line change
1
+ #include " mx8650.h"
2
+
3
+ // SCLK: 13, SDIO: 11
4
+ MX8650 mouseController (13 , 11 );
5
+
6
+ void setup ()
7
+ {
8
+ Serial.begin (9600 );
9
+ Serial.println (" Initializing MX8650..." );
10
+ }
11
+
12
+ void loop ()
13
+ {
14
+ Serial.println (" Motion Status: " + mouseController.getMotionStatus ());
15
+ Serial.print (" Delta X: " + mouseController.getDeltaX () + " \t " );
16
+ Serial.println (" Delta Y: " + mouseController.getDeltaY ());
17
+ }
Original file line number Diff line number Diff line change
1
+ #include " mx8650.h"
2
+
3
+ // SCLK: 13, SDIO: 11
4
+ MX8650 mouseController (13 , 11 );
5
+
6
+ void setup ()
7
+ {
8
+ Serial.begin (9600 );
9
+ Serial.println (" Initializing MX8650..." );
10
+ }
11
+
12
+ void loop ()
13
+ {
14
+ Serial.println (" PID: " + mouseController.getPID ());
15
+ }
Original file line number Diff line number Diff line change 1
1
name =MX8650 Mouse sensor library
2
- version =1.0.0
2
+ version =1.0.1
3
3
author =Saurav Sajeev
4
4
maintainer =Saurav Sajeev
5
5
sentence =Library to facilitate communication with the MX8650 mouse sensor, read/write from/to its internal registers.
You can’t perform that action at this time.
0 commit comments