Rotary encoder + 7 segment display.

I know this that Im very bad in coding :slight_smile:

I have added this:

void loop()
{

  
   if (encoder[1].count = 1)
    {
     digitalWrite(LEDPin, HIGH);
    }

   if (encoder[1].count = 0)
    {
     digitalWrite(LEDPin, LOW);
    }


   if (updateEncoders()) printEncoders();

}

But LED is only turn on after start program. Changing values by encoder to 0,1,0,1 nothing change in LED status.

encoder.zip (1.83 KB)