Imagen en eeprom 24LC256 o similar

Hola a todos, quiero hacerles una pregunta porque no encuentro info de lo que quiero hacer, hace poco empecé con arduino y me meti de lleno, me gusta mucho, empecé un proyecto y tengo una inquietud , tengo la siguiente variable que corresponde a una imagen, mi pregunta es se puede guardar en una eeprom 24lc256? es conveniente? ya que me ocupa bastante memoria en el arduino

\static const unsigned char Luma_Logo_bits U8X8_PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x0c, 0x00, 0x7e, 0x00, 0x00, 0x80, 0x1f, 0x00, 0x7e, 0x00,
0xfe, 0x01, 0xe0, 0x3f, 0x00, 0x00, 0x0e, 0x00, 0x7e, 0x00, 0x00, 0x80,
0x1f, 0x00, 0x7e, 0x00, 0xfe, 0x03, 0xe0, 0x3f, 0x00, 0x00, 0x1e, 0x00,
0x7e, 0x00, 0x00, 0x80, 0x1f, 0x00, 0x7e, 0x00, 0xfe, 0x03, 0xf0, 0x3f,
0x00, 0x00, 0x1f, 0x00, 0x7e, 0x00, 0x00, 0x80, 0x1f, 0x00, 0x7e, 0x00,
0xfe, 0x07, 0xf0, 0x3f, 0x00, 0x00, 0x3f, 0x00, 0x7e, 0x00, 0x00, 0x80,
0x1f, 0x00, 0x7e, 0x00, 0xfe, 0x07, 0xf0, 0x3f, 0x00, 0x00, 0x3f, 0x00,
0x7e, 0x00, 0x00, 0x80, 0x1f, 0x00, 0x7e, 0x00, 0xfe, 0x0f, 0xf8, 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x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

Hola posible supongo que si, ¿conveniente? depende de la longitud total de tu programa. sube el mensaje final de la compilacion a ver que esta pasando con esa imagen.
Saludos.

1 Like

Desde ya puedes guardarla en esa memoria o cualquier otra pero tmb puedes hacerlo en la flash de tu arduino, si respetas los espacios disponibles no tendrás problemas.
Busca Arduino PROGMEM

1 Like

Ya está en flash.
Yo lo dejaría ahí (Salvo que tenga que cargar un código de más de 30Kb) pero como alternativa está la eeprom interna sin necesidad de usar una externa.

Saludos

1 Like

Bueno, no vi que estaba en la Flash usando PROGMEM asi que mi comentario estuvo de más.
Solo busca como se leen bytes de algo guardado en la flash y listo.
Busca Arduino PROGMEM.

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.