Commit graph

4 commits

Author SHA1 Message Date
ladyada
4fd054b01e Apply clang-format to library files
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-17 14:27:35 -04:00
ladyada
77715e7a5d Add calculateLux function and improve test coverage
- Add calculateLux() function using datasheet resolution tables
- Support both 1/2 PD and 2/2 PD configurations
- Add RGB gain and interrupt persistence tests to example
- Add green threshold setter/getter tests
- Optimize loop delay based on integration time + 5ms buffer
- Add lux calculation display in test output

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-17 14:23:15 -04:00
ladyada
7124d7a9bb Apply clang-format and reorder CI workflow
- Format all source files with clang-format
- Run clang-format check before platform tests in CI

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-17 13:08:28 -04:00
ladyada
8fa09ba4fd Initial implementation of Adafruit VEML6046 RGBIR color sensor library
- Complete register definitions and I2C interface
- Configuration functions for integration time, gain, photodiode size
- Enable/disable and calibration controls
- Raw RGBIR data reading with efficient 8-byte I2C transaction
- Threshold and interrupt management functions
- Working test example with continuous measurement mode

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-17 12:59:30 -04:00