I want to use this Single Cell Li-Ion Solar Battery Charger (BQ24210). The pins /CHG and /PG are an open collector outputs and it will be connected to two low power LEDs as shown in the schematic. If I would also like to connect /CHG and /PG pins to GPIO pins of the ATMega328p microcontroller. What would be the best way to do this? The two GPIOs will be configured as digital input. Thanks.
simulate this circuit – Schematic created using CircuitLab