I have a SPARKFUN SerLCD(LCD-14072) and I set up a custom splash screen but cannot get rid of it.
I have tried lcd.disableSplash() but it does not seem to work.
Here is the setup code
void setup()
{
// following added for SPARKFUN SerLCD LCD-1402
Wire.begin();
lcd.begin(Wire);
Wire.setClock(400000); //Optional - set I2C SCL to High Speed Mode of 400kHz
lcd.setBacklight(0, 255, 0); //Set backlight to GREEN
lcd.setContrast(5); //Set contrast. Lower to 0 for higher contrast.
//lcd.clear(); //Clear the display - this moves the cursor to home position as well
//lcd.print(" PSDP LLC ");
//lcd.setCursor(0, 1);
//lcd.print(" xxxxxxxxxxx");
//lcd.saveSplash(); //Save this current text as the splash screen at next power on
//lcd.enableSplash(); //This will cause the splash to be displayed at power on
lcd.disableSplash(); //This will supress any splash from being displayed at power on
//added for ADAFRUIT DS3231 RTC
#ifndef ESP8266
while (!Serial); // for Leonardo/Micro/Zero
#endif
pinMode(kill, OUTPUT);
Serial.begin(115200);
Serial.println("Playing With Fusion: AS3935 Lightning Sensor, SEN-39001-R01");
Serial.println("beginning boot procedure....");
//following added for ADAFRUIT DS3231
if (! rtc.begin()) {
Serial.println("Couldn't find RTC");
while (1);
}
//following added for ADAFRUIT DS3231
if (rtc.lostPower()) {
Serial.println("RTC lost power, lets set the time!");
// following line sets the RTC to the date & time this sketch was compiled
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
// This line sets the RTC with an explicit date & time, for example to set
// January 21, 2014 at 3am you would call:
// rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
}
// setup for the the I2C library: (enable pullups, set speed to 400kHz)
I2c.begin();
I2c.pullup(true);
I2c.setSpeed(1);
delay(2);
lightning0.AS3935_DefInit(); // set registers to default
// now update sensor cal for your application and power up chip
lightning0.AS3935_ManualCal(AS3935_CAPACITANCE, AS3935_OUTDOORS, AS3935_DIST_EN);
// AS3935_ManualCal Parameters:
// --> capacitance, in pF (marked on package)
// --> indoors/outdoors (AS3935_INDOORS:0 / AS3935_OUTDOORS:1)
// --> disturbers (AS3935_DIST_EN:1 / AS3935_DIST_DIS:2)
// function also powers up the chip
Serial.println("HERE");
// enable interrupt (hook IRQ pin to Arduino Uno/Mega interrupt input: 0 -> pin 2, 1 -> pin 3 )
attachInterrupt(0, AS3935_ISR, RISING);
lightning0.AS3935_PrintAllRegs();
AS3935_ISR_Trig = 0; // clear trigger
Serial.println("FILE = as3935_lightning_nocal_LCD_wjl");
//lcd.clear();
//all_off();
}