Quote Originally Posted by jamied View Post
...All I'm trying to do is count from 0 to 255 in binary on the leds so I can learn the chip. It counts properly but doesn't shut off leds while it counts.
By ORing Dig0 with CR, it keeps any bits that were already in the variable.
Code:
For CR=0 To 255
    Dig0 = Dig0 | CR
    Low Load
    DelayMS 1
    shiftout Dout,Clk,msbfirst,[Dig0\16]  'no decode
    DelayMS 1
    High Load
    DelayMS 200
Next
Might work better with Dig0 as the FOR variable, and skip the OR.

And it looks like you are using PROTON basic.
They have a PROTON forum here ...
http://www.picbasic.org/forum
<br>