writing an array of Stings to EPROM

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
efeigenbaum
 
Posts: 98
Joined: Fri Feb 24, 2017 3:23 pm

writing an array of Stings to EPROM

Post by efeigenbaum »

I know that you can write a string to EEPROM but is there a way to do this with multiple strings that are in an array? Is so, I need some help with the code. This is for a students project that I am trying to help with. Thanks..

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: writing an array of Stings to EPROM

Post by mikeysklar »

Arduino or CircuitPython code?

User avatar
efeigenbaum
 
Posts: 98
Joined: Fri Feb 24, 2017 3:23 pm

Re: writing an array of Stings to EPROM

Post by efeigenbaum »

Arduino. I think I found a work-around, saving each string one at a time, but still would like to know if it possible to save an array of strings.

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: writing an array of Stings to EPROM

Post by mikeysklar »

What are you using hardware wise?

The general solution is not to use strings, but 2D arrays (subtle difference).

https://forum.arduino.cc/t/how-to-write ... m/691304/5

User avatar
efeigenbaum
 
Posts: 98
Joined: Fri Feb 24, 2017 3:23 pm

Re: writing an array of Stings to EPROM

Post by efeigenbaum »

I am using an Arduino UNO.

Locked
Please be positive and constructive with your questions and comments.

Return to “For Educators”