So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By PeteDoe
#80493 Hey everyone. I recently got a bunch of esp8266 and esp32 boards and I am experimenting. I can upload sketches using the arduino IDE or platformio and run them. I have been reading the source of esp projects on github, but being a total noob to microcontrolers, there is a ton of things that confuse me.

I haven't program in C for 20 years so bear with me and my silly questions.

So I re this helpful guide:
http://arduino.esp8266.com/versions/1.6 ... rence.html

What's with progmem and all those macros. If I just want to store a couple of dozen small strings, what is the problem of just allocating them 'in the stack'?

And what does it mean to "manage duplicates yourself"

I've seen people emulating arrays of strings like this:

Code: Select allconst char mystringlist[] PROGMEM = {
  "foo\n"
  "bar\n"
}


and them manually splitting on the \n separator. Why do people do this instead of just creating an array of strings?

This may be a stupid question, but would would a simple queue implementation like this one be challenging to port to the an esp8266? Why?
https://gist.github.com/rdleon/d569a219 ... 6fd6298554

Thanks in advance