Hello.
I'm advancing my nixie clock project, and now it has LCD screen, which is used for setup config.
I want to add multi-language setup choices, and I have texts ready, but I come up with the following problem:
The setup routine has 14 steps total, and each step has own 16 character text displayed on LCD screen.
Each step has it's own part, which looks like this:
For single language this is OK, but if I want to add more languages, say 8 different languagesCode:if menuitem=2 then arraywrite topline, ["Set the year: "] dlim=22:ulim=99 gosub gettime gosub yeardecode cvladi=T3*10+T4 gosub yrshow 'update screen endif
this means, I'll have to make it look like this:
And so on. This is doable, but does not looks practical.Code:if menuitem=2 then if language=1 then arraywrite topline, ["Set the year: "] endif if language=2 then arraywrite topline, ["Derniers baisers: "] endif if language=3 then arraywrite topline, ["Sauerkraut: "] dlim=22:ulim=99 gosub gettime gosub yeardecode cvladi=T3*10+T4 gosub yrshow 'update screen endif
So I need a way to somehow reference to internal memory
So when I need to read say text for french language, I just point to address,
from where data for French can be read.
This is quite simple with EEPROM - just set offsets and you're done, but
the chips I'm using have only 256 bytes of eeprom, and setup text will require
14x16 bytes for each language, which means, I can only have one language available
I want to avoid usage of external EEPROM chips, since I have about 3K of data code
space free, so I think, these strings in different languages can be somehow
packed there?




Bookmarks