Timeline for Accessing 2 dimensional array in PROGMEM inside loop
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 23, 2019 at 16:44 | vote | accept | Arundale Ramanathan | ||
| Feb 23, 2019 at 10:05 | answer | added | Juraj♦ | timeline score: 0 | |
| Feb 22, 2019 at 21:17 | comment | added | Jot | You can make it easier. For example when each array is a zero terminated string, or when all the arrays have the same fixed size, or one long string with markers. A two-dimensional array with a different number of elements without knowing how many elements are valid, that seems so very weird. | |
| Feb 22, 2019 at 20:38 | comment | added | Arundale Ramanathan | @Juraj sorry, i guess i don't have option to upvote you since i am new here.. | |
| Feb 22, 2019 at 20:34 | answer | added | Arundale Ramanathan | timeline score: 1 | |
| Feb 22, 2019 at 20:30 | comment | added | Arundale Ramanathan | I had already gone through it.. after you put it here, i took some ideas and made it work.. giving below as answer.. thanks.. | |
| Feb 22, 2019 at 20:22 | comment | added | Juraj♦ | arduino.cc/reference/en/language/variables/utilities/progmem | |
| Feb 22, 2019 at 20:21 | comment | added | Arundale Ramanathan | I think you are right.. is there any way I can achieve accessing the elements from inside the loop? | |
| Feb 22, 2019 at 20:18 | comment | added | Juraj♦ |
the constant uses like arr[1][0] are replaced at compile time with the items value. they are not read from the array in runtime. even with j with constant value the compiler evaluates it at compile time and replaces with the value
|
|
| Feb 22, 2019 at 20:15 | review | First posts | |||
| Feb 22, 2019 at 21:00 | |||||
| Feb 22, 2019 at 20:12 | history | asked | Arundale Ramanathan | CC BY-SA 4.0 |