Reference   Language | Libraries | Comparison | Changes

Robot?

beginBMPFromEEPROM()

Description

After beginBMPFromEEPROM() is called, drawBMP() will look for images from the EEPROM, until endBMPFromEEPROM() is called.

Images stored in EEPROM are accessed more slowly than from an SD card.

If drawBMP() cannot find images from EEPROM with the given file name, no image will be rendered on screen, even if a bmp with the same file name is stored on a SD card.

Call endBMPFromEEPROM() after drawBMP() if you want to get images from a SD card afterwards.

Syntax

Robot.beginBMPFromEEPROM()

Parameters

none

Returns

none

Examples

#include <ArduinoRobot.h>

void setup(){
  Serial.begin(9600);
  Robot.begin();
  Robot.readyLCD();

  //The image is pulled from EEPROM
  Robot.beginBMPFromEEPROM();
  Robot.drawBMP("inicio.bmp",0,0);
  Robot.endBMPFromEEPROM();

}
void loop(){
}

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Share