Scroller based on gfxLcd library. See: http://dl.dropbox.com/u/9496739/scroller.m4v Link to the image: http://dl.dropbox.com/u/9496739/file.bmp
main.cpp
- Committer:
- HBP
- Date:
- 2011-03-03
- Revision:
- 1:3b8f3de28f0d
- Parent:
- 0:dbd2fddd0a95
File content as of revision 1:3b8f3de28f0d:
#include "mbed.h" #include "lcd.h" #include "bitmap.h" LocalFileSystem local("local"); int main() { gfxLcd *glcd = new gfxLcd(); bitmapImage *bitmap = new bitmapImage("/local/file.bmp"); // Nice scroller while(1) { for(uint32_t i=160; i+bitmap->fileInfo.cols > 0; i--) { bitmap->drawImage(glcd, i, 0); glcd->update(); } } delete bitmap; }