electronic device with two terminals