I know that I had succuss outputting to the DO pins by using a single number. Each pin is basically a binary number slot. If you want to write to pin 0, then the number you would write is 1 (2^0 = 1). If you would like to write to pin 3, then the number you would write is (2^3 = 😎
So here's an example of writing 5V to pin 2 for 2 seconds:
CWDO1.Configure
CWDO1.Write 4 '(pin 2 - 2^2 = 4)
'When you want to put it back to 0
CWDO1.Write 0
you might use a sleep(20000) method, search for this on Google if you need it.