Howto measure BUS rise time + variable pullup resistor

A digital pin with a resistor, and analog pin to sense voltage - that's a one resistor circuit!
Digital pins can be switched to INPUT mode which it high impedance, you'd do that before and after charge injection.