You should first convert, and then switch the lights accordingly. And you must evaluate the return value of your convert:
bin = convert (minuteur);
light( bin );
You should first convert, and then switch the lights accordingly. And you must evaluate the return value of your convert:
bin = convert (minuteur);
light( bin );