Pulsed driver for laser diodes with TEC