In the figure we have the simple way to obtain a digital inverter using a general-purpose transistor. The collector power supply determines the output logic.