Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [progmem]

PROGMEM is a keyword used when declaring a variable that keeps the data in flash instead of copying it into SRAM. It is part of the `pgmspace.h` library. Use this tag for discussions about using this attribute.

4
votes
1answer
783 views

Flash String Helper object as variable

So I have a Bunch of commonly used char arrays to build commands in my library. So to preserve memory, I have them put into flash, via PROGMEM ext, typedef const char PROGMEM ProgChar; ProgChar AT[] =...
1
vote
1answer
59 views

Printing elements of char array from PROGMEM

Given: const char* PROGMEM names[] = {"Foo","Bar"}; Serial.print(names[0]); I get garbage output. Is there some function that will print the string from PROGMEM? E.G.: Serial.print(<function ...
-1
votes
1answer
32 views

Problems with Arduino + IR + Raw code low memory

im having a problem with my new project with arduino + ir emitter + big raw codes. I've tryed this way: https://gist.github.com/jjmjr/41ed083c8229d0218c962641c5af27b0 As you can see each of my raw ...
1
vote
0answers
60 views

Arduino Program Memory Ran Out

I have a Arduino sketch I made and I have run out of dynamic memory on my Arduino Nano. How could I possibly reduce the amount of memory the program takes? (I'm not that good at this stuff) P.S: The ...
1
vote
0answers
98 views

Strange things happening with Arduino PROGMEM

I am currently working on a display library. The font should be stored in PROGMEM. The code looks something like this: unsigned int i = 0; Serial.println(pgm_read_byte(&font[1]),HEX); unsigned ...
1
vote
0answers
255 views

Writing objects to PROGMEM

A few days ago I encountered memory problems (SRAM shortage) on my Arduino. I've read a lot and fixed the problem, now i have around 900 bytes free in SRAM. However, i still have difficulties ...
0
votes
0answers
21 views

Using a 48 characters char[] for PROGMEM

I am trying to create a charliplexed display of 6x8 LEDS using a Arduino Nano with the ATMega328p chip. Because of the limited storage I am trying to use PROGMEM. I did my research and found some ...
0
votes
0answers
92 views

OV7670 Arduino Camera Sensor Module colour image problem

I am working on OV7670 Camera Sensor with Arduino uno board, it is work ok in VGA mode , but images capture in black and white mode, i tried to find tutorial for set RGB mode for capture images bat i ...
0
votes
0answers
218 views

Arduino code quits running loop after short time Ethernet shield

I'm trying to make a temperature logger that posts to MySQL. I have done this successfully, but my code will only run for approximately 15-20 minuets. I don't think it is a power issue as I have tried ...