So in etwa sollte es funktionieren. Ansonsten empfehle ich die FAQ unter "How do I put an array of strings completely in ROM?"Code:#include <avr/pgmspace.h> prog_char text[3] = "bla"; prog_char zahlen[4] = { 123, 3, 7, 56 }; for (i=0;i<3;i++) daten[i] = pgm_read_byte( &text[i] ); for (i=0;i<4;i++) daten2[i] = pgm_read_byte( &zahlen[i] );
Schon, spontan fallen mir noch zwei andere ein..gibts noch andere
MfG Kjion
Lesezeichen