Shift register with delays isn't working

hi...i need help in setting delays in shift register
if i set this to turn on lights 1 by 1 .delay works and turns on 1 by 1 with 1000ms delay

for(int i=0;i<16;i++) {
      sr.set(i, HIGH);
      delay(1000) 

if i try to turn off those one by one , delay isnt working .but it just turns off all leds at once

for(int i=0;i<16;i++) {
      sr.set(i, LOW);
      delay(1000);` 

It may be a bug in a library.

Please provide more related information.

Missing ";" after delay.

Additional "`" character?

My point is: you're posting two small snippets of code, but to be able to help, we'd need to see the full code. This could be anything, but likely it's something relatively simple like a syntax error.

sure i got is solves thanks

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.