Repository navigation
A small maintenance release for the PCF8591 library that improves cross-platform I²C stability and fixes analog output/read inconsistencies on some boards.
Highlights
- Improved I²C communication robustness across Arduino, Raspberry Pi Pico / RP2040, ESP32, STM32 and ESP8266.
- Fixed occasional incorrect ADC readings after rapid channel switching.
- Fixed analog write behaviour on certain boards to ensure reliable DAC output.
- Minor documentation and example updates.
Improvements
- Added more conservative I²C timing and retry logic to reduce transient errors on noisy buses.
- Slightly optimized ADC read smoothing for more stable values in noisy environments.
- Cleaned up examples to demonstrate best practices for multi-channel reads and writes.
Bug fixes
- Resolved edge case causing stale ADC values when switching channels quickly.
- Corrected DAC output initialization sequence on some microcontroller cores.
Installation
- Install via Arduino Library Manager or clone from the repository:
https://github.com/xreef/PCF8591_library
Notes
- Backward compatible with existing sketches; no API changes expected.
- If you still encounter issues on a specific board, please open an issue with board, core version and a minimal reproducible example.
Author
Renzo Mischianti — mischianti.org
Repository: https://github.com/xreef/PCF8591_library