thinking of something like this but not sure how to implement it
n = 1 to 65535 or 4095
if n>255 then second port pin 1 =1
if n>512 then turn off pin 1 turn on pin 2
etc
but this then gets messy and involves a lot of decision boxes

Steve
Moderator: Benj