Solar panels charging in series or parallel