Commit graph

10 commits

Author SHA1 Message Date
Adafruit Developer
3d37b66643 Apply clang formatting to bmp5.c
Some checks failed
Arduino Library CI / build (push) Has been cancelled
- Format comment blocks to use standard block comment style
- Fix function parameter pointer alignments
- Standardize indentation and spacing
- Update formatting for better code readability

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-10 08:54:22 -04:00
Adafruit Developer
158e9af830 Update GitHub CI workflow to match Adafruit_AS5600 and apply clang formatting
- Remove build matrix strategy to match reference workflow
- Downgrade action versions (checkout@v2, setup-python@v1)
- Reorder steps (setup-python first)
- Change platform test to use main_platforms instead of matrix variable
- Move clang step before test platforms step
- Apply clang formatting to all source files

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-10 08:49:15 -04:00
ladyada
ea0d4c0bb1 Fix interrupt configuration order to enable data ready interrupts
- Fix critical bug in configureInterrupt() method call order
- Call bmp5_configure_interrupt() before bmp5_int_source_select()
- Prevents pin configuration from clearing interrupt source settings
- Update interrupt test example to use optimal settings for testing
- Remove debug register dumps from test examples
- Interrupts now work correctly with 1Hz data ready functionality

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-09 12:03:27 -04:00
ladyada
607cc2afc2 Enhance configureInterrupt with interrupt source selection
- Add bmp5xx_interrupt_source_t enum for interrupt source types
- Update configureInterrupt() to accept interrupt sources parameter
- Support combining multiple interrupt sources with bitwise OR
- Add data ready, FIFO full, FIFO threshold, and pressure out-of-range sources
- Maintain backward compatibility with default data ready source
- Update I2C example to demonstrate new interrupt source parameter

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-09 11:11:35 -04:00
ladyada
a19a277532 Add Adafruit Unified Sensor API example
- Add bmp5xx_unified_sensor example demonstrating unified sensor interface
- Show detailed sensor metadata (range, resolution, type, ID)
- Demonstrate event-based readings with timestamps
- Use alternative I2C address (0x47) for consistency
- Include altitude calculation from pressure readings
- 2-second reading intervals with structured output

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-09 11:02:33 -04:00
ladyada
2e3f85f76b Add SPI example and interrupt configuration functionality
- Add bmp5xx_spi_test example demonstrating SPI communication
- Add configureInterrupt() method with polarity/drive/mode options
- Add interrupt configuration enums to header file
- Update I2C example to show interrupt configuration
- Change default interrupt mode from pulsed to latched

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-09 10:56:15 -04:00
ladyada
fa0cc2f241 Enable data ready interrupts and simplify example
- Enable data ready interrupt source in library initialization
- Configure interrupt pin as push-pull, active high, pulsed mode
- Switch example to normal mode instead of continuous
- Simplify loop to direct reading without data ready polling
- Remove error messages and use silent failure on read errors
- Reduce delay to 100ms between readings
- Remove deprecated enum case handling

Sensor now works reliably in normal mode with proper interrupt configuration.
Temperature readings: ~24°C, Pressure readings: ~1020 hPa

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 21:21:14 -04:00
ladyada
95c05f7ea8 Fix spelling: BMP5XX_POWERMODE_CONTINOUS -> BMP5XX_POWERMODE_CONTINUOUS
- Add correctly spelled BMP5XX_POWERMODE_CONTINUOUS enum
- Keep misspelled BMP5XX_POWERMODE_CONTINOUS for backward compatibility (deprecated)
- Update example to use correct spelling
- Both enums map to same underlying Bosch API value

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 20:51:44 -04:00
ladyada
18997eb650 Add BMP585 support to documentation
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 20:48:31 -04:00
ladyada
d5c35e955d Initial commit of Adafruit BMP5xx library
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 20:46:34 -04:00