lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

PICs you say? Maybe you could use this then:

Probably reasonably easy to adapt for your needs.


On Sat, Mar 28, 2009 at 11:08 PM, Nick Gammon <> wrote:
Hmmm, Lua on a PIC chip eh? Sounds interesting. Which chip is it, if you don't mind my asking?

One possible solution would be to simply implement the memory access via an extra function you add, eg.

PutIntoMemory (bank, string)  -- put up to 16 Kb string into a bank


GetFromMemory (bank, string)  -- get string back

Depending on what you are trying to achieve with the application, that might work. Or let the access to the banked memory be accessible by key (eg. by using an STL map type).

For example, if you are just trying to log a lot of numbers into the memory, you might do this:

PutIntoMemory (bank, key, number)

- Nick