PWM startup

Guys is there any way to have PWN running straight after reset??
I`m having delay of the RGB for my screen.

Thanks

Guys is there any way to have PWN running straight after reset??

Turn the appropriate pin on in setup().

You mean pinMode()? Or digitalWrite()?

You don't need a pinMode for a PWM pin.
Just do analogWrite.

This is really cool :slight_smile:
last question, how should i construct syntax so the analogWrite is as stored in eeprom??

  Serial.begin(9600);
  //▼RGB
  count = EEPROM.read(10);
  pinMode(RGBbut, INPUT_PULLUP);
  analogWrite(redPin, count);
  analogWrite(greenPin, count);
  analogWrite(bluePin, count);  
     u8g.firstPage();  
  do {
  u8g.drawXBMP( 54, 9, krone12864XBM_width, krone12864XBM_height, krone12864XBM_bits);
  } while( u8g.nextPage() );
 delay(6000);