Hello! Martin
good morning
Thank you for writing back, I will check on your suggestions once I reach in front of computer and keep you posted.
NOTE: Reding and Writing strings within internal EEPROM is easy and straight forward but the same macro is not available when it comes to using external macro, so this big exercise.
Thank you.
Abhi
External EEPROM ReadString/WriteString
-
- Posts: 32
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 6:26 am
- Has thanked: 3 times
-
- Valued Contributor
- Posts: 1582
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 140 times
- Been thanked: 745 times
Re: External EEPROM ReadString/WriteString
To read from external eeprom is still okay:
Need to read to a /0 character.
Using text, pos, c and i (index) ideally all locals:
It should have a check on max length as well - and probably be moved to a separate macro (taking pos and max length as parameters and return a string)
Martin
Need to read to a /0 character.
Using text, pos, c and i (index) ideally all locals:
Code: Select all
.i = 0
.pos = address to read
loop
.c = ReadByte(.pos + .i)
.text[.i] = .c
.i = .i + 1
until .c = 0
Martin