-
Notifications
You must be signed in to change notification settings - Fork 2
How SWAP works
Joshua Zenn edited this page Aug 10, 2015
·
2 revisions
Most Arduinos have very limited RAM. To overcome this, we developed a system that uses your SD card as an extension of the onboard RAM. Linux users may recognize this as SWAP. Although differently implemented, both Linux SWAP and Octoduino Swap serve the same purpose.
The BIOS of Octoduino is programmed in ParseBasic. In it's most basic form, all variables are stored as strings. Because of this, the contents of any variable can easily be written to and retrieved from a simple text file.
Although we do not recommend playing with the files yourself, ParseBasic creates and modifies SWAP files for you whenever you use the NEW
, SET
, or DELETE
opcodes.