Describe multiple arrays
1 – each bottle, probably by letter, this will probably be commented out as extraneous
2 – pwm pins, aligned with 1 for readability
3 – sink pins, aligned with 1
4 and 5 – hiding the status of 2 and 3 respectively
chooser:
Random grab a bottle
are 2 and 3 zero
set 4 to 1 and 5 to on
Maintain:
Write 2x abs(4)
4+1
If 4 is max, make 4 negative
Make 3 low
If 2 is zero, make 3 high