Hi,
Forget the while statements.
You need to detect the buttons BEING pushed, NOT in the pushed state.
This will help
Write code to get just one output to toggle ON and OFF.
Then simply write it two more times with button and load pinouts changed.
Tom... ![]()