25
• ppt10.bmp:gpiosOff(0;2;4)
o LED’s 0, 2, and 4 are turned off; other LED’s are unaffected when the
ppt10.bmp state is entered
• product1.bmp:gpios()
o All LED’s are turned off when the product1.bmp state is entered
Preloading Images
The autoplay script tries to be smart about preloading still images so that when a user
triggers their display, they pop up immediately. Here are the rules that are used to
preload an image:
1. If a state (row in the table) only has one possible next bmp state, then it is
preloaded.
2. If a state has more than one possible next bmp state, but one of them is the next
row in the state table, then it (next state row’s file) is preloaded. So if you have a
sequence of images that display one after the other, put them in sequential rows in
the state table to trigger preloading. As an example of this, see the bs1.bmp,
bs2.bmp, etc states (rows) in the prior table.