SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
pawa350_motion.ino File Reference

@license MIT License More...

Include dependency graph for pawa350_motion.ino:

Go to the source code of this file.

Macros

#define SENSOR_SDA   1
 
#define SENSOR_SCL   2
 
#define SENSOR_IRQ   43
 
#define SENSOR_RST   44
 
#define SENSOR_SHUTDOWN   48
 
#define SENSOR_FPD_INT   18
 

Functions

void setup ()
 
void loop ()
 

Variables

SensorPawA350 sensor
 
volatile bool motionIrqTriggered = false
 
volatile bool fingerStateChanged = false
 

Detailed Description

@license MIT License

Copyright (c) 2026 lewis he

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Author
Lewis He (lewis.nosp@m.he@o.nosp@m.utloo.nosp@m.k.co.nosp@m.m)
Date
2026-04-14

PAW-A350 Optical Finger Navigation Sensor Example

Description

This example demonstrates the full functionality of the PAW-A350 sensor including:

  • Sensor initialization and soft reset
  • CPI resolution configuration (set/get all values)
  • LED control (current and always-on mode set/get)
  • Power management (downshift times and frame periods set/get)
  • Motion detection and data reading
  • Interrupt threshold configuration
  • Finger presence detection

Definition in file pawa350_motion.ino.

Macro Definition Documentation

◆ SENSOR_FPD_INT

#define SENSOR_FPD_INT   18

Definition at line 67 of file pawa350_motion.ino.

◆ SENSOR_IRQ

#define SENSOR_IRQ   43

Definition at line 55 of file pawa350_motion.ino.

◆ SENSOR_RST

#define SENSOR_RST   44

Definition at line 59 of file pawa350_motion.ino.

◆ SENSOR_SCL

#define SENSOR_SCL   2

Definition at line 51 of file pawa350_motion.ino.

◆ SENSOR_SDA

#define SENSOR_SDA   1

Definition at line 47 of file pawa350_motion.ino.

◆ SENSOR_SHUTDOWN

#define SENSOR_SHUTDOWN   48

Definition at line 63 of file pawa350_motion.ino.

Function Documentation

◆ loop()

◆ setup()

Variable Documentation

◆ fingerStateChanged

volatile bool fingerStateChanged = false

Definition at line 73 of file pawa350_motion.ino.

◆ motionIrqTriggered

volatile bool motionIrqTriggered = false

Definition at line 72 of file pawa350_motion.ino.

Referenced by loop(), and setup().

◆ sensor

SensorPawA350 sensor

Definition at line 70 of file pawa350_motion.ino.

Referenced by loop(), and setup().