Commit graph

6 commits

Author SHA1 Message Date
Limor Fried
233fd3c7a7 Format code with clang-format
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-10 01:04:42 -04:00
Limor Fried
07326189f8 Complete ADC function implementation with die temperature support
- Add comprehensive ADC reading functions (IBUS, IBAT, VBUS, VPMID, VBAT, VSYS, TS, TDIE)
- Implement proper 2's complement conversion for signed values (IBAT, TDIE)
- Add real-time ADC monitoring in test sketch (1-second intervals)
- Include die temperature measurement with 0.5°C resolution
- Hardware tested with BQ25628E showing correct register access and conversions

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-10 01:03:25 -04:00
Limor Fried
046a1293ff Add advanced register control functions (REG0x17-0x1A)
- REG0x17: Add reset(), thermal regulation, converter frequency, and VBUS overvoltage functions
- REG0x18: Add BATFET control functions
- REG0x19: Add peak discharge current, VBAT UVLO, and charge rate functions
- REG0x1A: Add thermistor control functions (ignore, cool/warm current settings)
- Add comprehensive test coverage with enum switch statements in example sketch
- All functions tested with hardware showing correct default values

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-10 00:05:30 -04:00
Limor Fried
77c4d0c4b3 Add comprehensive charge control and timer functions
- Add charge timer control functions (REG0x15): safety timers, precharge timer, fast charge timer
- Add comprehensive charger control functions (REG0x16): auto battery discharge, force discharge, charging enable, HIZ mode, PMID discharge control
- Add watchdog control functions with enum support: reset, get/set watchdog timer
- Add precharge and termination current control functions
- Add trickle current and termination enable control
- Add VINDPM battery tracking control
- Update test sketch with all new functions and comprehensive testing
- All functions tested and verified working with hardware

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-09 23:37:49 -04:00
Limor Fried
b521dd370d Add register control functions for charge/input limits and system voltage
- Add setChargeCurrentLimitA() and getChargeCurrentLimitA() functions
  * Range: 0.04A-2.0A in 0.04A steps (register 0x02, bits 10:5)
- Add setChargeVoltageLimitV() and getChargeVoltageLimitV() functions
  * Range: 3.5V-4.8V in 0.01V steps (register 0x04, bits 11:3)
- Add setInputCurrentLimitA() and getInputCurrentLimitA() functions
  * Range: 0.1A-3.2A in 0.02A steps (register 0x06, 8 bits shifted by 4)
- Add setInputVoltageLimitV() and getInputVoltageLimitV() functions
  * Range: 3.8V-16.8V in 0.04V steps (register 0x08, 9 bits shifted by 5)
- Add setMinimalSystemVoltageV() and getMinimalSystemVoltageV() functions
  * Range: 2.56V-3.84V in 0.08V steps (register 0x0E, 6 bits shifted by 6)
- Update test example with all register functions and F() strings for SRAM optimization
- All functions verified working with hardware showing correct default values

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 16:30:19 -04:00
Limor Fried
f45c1521a4 Initial Arduino library for BQ25628E I2C Battery Charger
- Add basic library structure with constructor, destructor, and begin()
- Include chip ID verification (0x22) in begin() function
- Add register address definitions for all BQ25628E registers
- Include test example sketch with basic functionality verification
- Add GitHub CI workflow and clang-format configuration
- Set up project structure following Adafruit library conventions

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 11:03:42 -04:00