ADNS2080 Mouse Sensor Driver Application main file.
More...
|
static void | gpiote_init (void) |
| Function for initializing the GPIO Tasks/Events peripheral.
|
|
void | GPIOTE_IRQHandler (void) |
| Function for handling the GPIOTE interrupt. Triggered on motion interrupt pin input low-to-high transition.
|
|
int | main (void) |
| Function for application main entry.
|
|
This file contains the source code for an application using ADNS2080 mouse sensor driver.
#define MOTION_INTERRUPT_PIN_NUMBER (26) |
Pin number used for ADNS2080 motion interrupt. If you change this, you must change the pin configuration in the main function.
#define MOUSE_MOVEMENT_THRESHOLD (10) |
Deadzone for mouse movement before LEDs are lit.
Variable to store mouse X-axis movement deltas.
Variable to store mouse Y-axis movement deltas.
bool volatile motion_interrupt_detected = false |
|
static |
If set, motion interrupt has occurred. Clear after reading.