This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Loading text files

I've just started playing with MCB2130 and did some
examples.

Now I would like to enable / clear leds with external file.
So, I would write a text file, each line would be a led address that would stay on for some time, then it would clear that and enable the second one... till it reaches the end of this file.

My biggest problem is
- how to load a file into memory (I was looking at voice player example, so by using flash.ini file, but is this the right way for simple text files??? Do I need to convert them to some other format?)

- how to read such file (Is it always at same memory address, how to determine it's length...)

I'm not sure if this is the right approach to this problem at all, but instructions needs to be in a file.

0