No description
Find a file
ladyada 64a32e49da Add unified sensor API example and apply code formatting
- Add sensorapi example demonstrating Adafruit Sensor interface
- Shows sensor specifications and metadata from datasheet
- Uses sensors_event_t structure for standardized readings
- Includes timestamp information for data logging compatibility
- Apply clang-format to ensure consistent code style

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-26 20:56:23 -04:00
.github/workflows Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
examples Add unified sensor API example and apply code formatting 2025-08-26 20:56:23 -04:00
.clang-format Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
.gitignore Remove .claude folder and add to gitignore 2025-08-26 16:57:25 -04:00
Adafruit_SPA06_003.cpp Add unified sensor API example and apply code formatting 2025-08-26 20:56:23 -04:00
Adafruit_SPA06_003.h Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
CODE_OF_CONDUCT.md Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
library.properties Add auto-configuration for highest precision and new simpletest example 2025-08-26 20:53:24 -04:00
LICENSE Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
README.md Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00

Adafruit SPA06_003 Build StatusDocumentation


Adafruit SPA06_003 Breakout

This is the Adafruit SPA06_003 Digital Pressure Sensor library for Arduino.

Tested and works great with the Adafruit SPA06_003 Breakout Board.

About the SPA06_003

The SPA06_003 is a miniaturized Digital Barometric Air Pressure Sensor with high accuracy and low current consumption. Key features:

  • Pressure range: 300 ... 1100hPa (+9000m ... -500m relating to sea level)
  • Temperature Range: -40...+85°C
  • Supply voltage: 1.7 ... 3.6V (VDD), 1.08... 3.6V (VDDIO)
  • Small footprint: 2.0mm x 2.5mm; Super-flat: 0.95mm
  • Relative accuracy: typ.±0.03hPa, equiv. to ±0.25 m
  • Absolute accuracy: typ. ±0.3hPa (300 ... 1100hPa)
  • Temperature accuracy: typ. ± 1°C
  • Measurement time: 3.6ms for low precision mode
  • Average current consumption: 1.7 µA for pressure measurement, 1.5 µA for temperature measurement at 1Hz sampling rate
  • I2C and SPI interface
  • FIFO: Stores latest 32 pressure or temperature measurements
  • Embedded 24-bit ADC

Installation

To install, use the Arduino Library Manager and search for "Adafruit SPA06_003" and install the library.

Dependencies

This library depends on the Adafruit BusIO library

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation and doxygen

Documentation is produced by doxygen. Contributions should include documentation for any new features.

Formatting and clang-format

This library uses clang-format to standardize the formatting of .cpp and .h files. Contributions should be formatted using clang-format:

The -i flag will make the changes to the file.

clang-format -i *.cpp *.h

If you prefer to make the changes yourself, running clang-format without the -i flag will print out a formatted version of the file. You can save this to a file and diff it against the original to see the changes.

Note that the formatting output by clang-format is what the automated formatting checker will expect. Any irrelevant changes (such as un-necessary whitespace changes) will result in a failed build until they are addressed. Using the -i flag is highly recommended.

About this Driver

Written by Limor 'ladyada' Fried with assistance from Claude Code for Adafruit Industries. MIT license, check license.txt for more information All text above must be included in any redistribution

To install, use the Arduino Library Manager and search for "Adafruit SPA06_003" and install the library.