import schemdraw
import schemdraw.elements as elm
elm.style(elm.STYLE_IEC)
d = schemdraw.Drawing()


#d += (V1 := elm.BatteryCell().up().label('5V'))
#d += (N1 := elm.LineDot().right())
#d.push()
#d += elm.Line().right()
#d += elm.Resistor().down().label('100 Ω').label(['+','$v_o$','-'], loc='bot')
#d += elm.Line().to(V1.start)
#d.pop()
#d += elm.Capacitor().down().toy(V1.start).label('1 μF')
#d += elm.Dot()


d += (V1 := elm.BatteryCell().right().label('5V'))
d += elm.LineDot().down()
d.push()
d += elm.Line().down()
d += elm.Lamp().left()
d += (S1 := elm.Switch())
d += elm.Line().up()
d += elm.Lamp().up().at(S1.end).to(V1.start)
d += elm.Line()
d.pop()
d += elm.LED().left().tox(S1.end).label('tt')
d += elm.Dot()


d.add(elm.Resistor(d='right', label='1$\Omega$'))
d.add(elm.Diode)
d.add(elm.LED)
d.add(elm.BatteryCell)
d.add(elm.MeterV)
d.add(elm.MeterA)
d.add(elm.MeterOhm)
d.add(elm.Solar)
d.add(elm.Switch)
d.add(elm.LineDot)
d.draw()
