title: How to make a LED flash on an Arduino using c++ but without using any function besides millis()
body: <p>I am trying to make the LED flash on my arduino without using any function other than millis() within setup() and loop(). Here is what I have so far:</p>
  
  <pre><code>long previousMillis = 0;
  long interval = 1000;
  
  void setup()
  {
     DDRB = DDRB | B11111100;
  }
  void loop()
  {
     if ((unsigned long)(millis() - previousMillis) &gt;= interval)
        {
        if ( PORTB == B00000000)
            PORTB = B00100000;
        else
            PORTB = B00000000; 
        }
  }
  </code></pre>
  
  <p>All it does is make the light go on and stay on though. I would appreciate any help! Thank you!</p>