The control program for my bicycle LED headlight and alternator project.