Single chip solar charging light control