| davidbuckley.net |
| home > Libby > Software overview | 20 June 2026 |
each Map is 16x16 bytes so a Map can fit in a Page.
Any Slot can be copied to any other Slot
Slot contents can be sent as a <=32 byte string from a terminal
To get round the fact that the mega2560 only has the standard 64 byte Serial Buffer I have a 256 byte RAM buffer filled from Serial.read(), then transferred to the desired EEPROM location. Serial.read() then write to RAM works fast enough so the serial buffer does not overflow for <=256 byte transfers, at least at 9600baud.
Any Slot or Page or Chapter can be printed out.
So Pages of commands can be written off line and downloaded, and Maps can be written as text files and downloaded or uploaded and modified and downloaded again. Libby will also be able to modify the Maps, and later also modify commands in Slots.
Note
Any Page can be copied to any other Page
Each Slot has an address - eg A47
and the current division can be set by /
/b2 - set book 2 to be the current book
/A - set Chapter A - of A.!.T.S.V.M.m.N to be the current Chapter
/(1-8) - set Page to be the current Page
(1-8) - select Slot
eg
/b2/S/3 - selects Page 3 in Skills in Book 2
The commands in each Slot can include or jump to any other Slot
if
Slot1: <some commands>2
Slot2: <some more commands>1
will repeatedly execute <some commands><some more commands>
eg
/T/4/2*l6<command string>.
will load <command string> into Slot6 in Page 2 of Tasks of the current Book.
/T/4/2*lp<command string>.
will load a complete page into Page 2 of Tasks of the current Book where the page is formatted as
<string1>.<string2>.<string3>.<string4>.<string5>.<string6>.<string7>.<string8>. - note the '.' separators.
?3 - prints Slot3 of the current Page
?? - prints the current Page
?C - prints the current Chapter
?m - prints the current Map (?M is used to print the Mind)
I was going to use 1k (32x32) maps.
I could use a 1k RAM buffer but that uses a lot of RAM.
So I expected to fill the RAM buffer, send xoff to stop further bytes being received, transfer the RAM buffer contents to the first page of the Map, send xon and fill the RAM buffer again, and repeat three more times to complete the map. BUT xon/xoff does not work in Win10, even after setting that in COM properties.
The Map pages could be filled by loading each page separately by eg /T/4/2*lp
However 16x16 maps were easier. Maybe they will be upgraded to 32x32 later.