lvalue required as left operand of assignment

can anyone tell me whats wrong with my code?

void loop(){

  • Start = millis();*
  • if(digitalRead(input)=0){*
  • if((Start + 250) < Start){*
  • state1 != state1;*
  • digitalWrite(slow, state1);*
  • }*
  • }*
    }

can anyone tell me whats wrong with my code?

Does your code REALLY look like that?

if(digitalRead(input)=0)

Have you not learned the difference between = and ==? If not, it's time you did.

if((Start + 250) < Start)

For what value(s) of Start could this ever be true?

state1 != state1;

This is a (useless) test, not an assignment. The ! is in the wrong place.

Caleborp:
can anyone tell me whats wrong with my code?

Yes. It gives a whole lot of compiler errors. Is that what you meant?

sketch_mar24c.cpp: In function 'void loop()':
sketch_mar24c:1: error: 'Start' was not declared in this scope
sketch_mar24c:2: error: 'input' was not declared in this scope
sketch_mar24c:4: error: 'state1' was not declared in this scope
sketch_mar24c:5: error: 'slow' was not declared in this scope

Oh, and please edit your post, select the code, and put it between [code] ... [/code] tags.

You can do that by hitting the # button above the posting area.

Using the "center" tag isn't quite the same thing.