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
00001 #include "mbed.h" 00002 #include "lcd.h" 00003 #include "bitmap.h" 00004 00005 LocalFileSystem local("local"); 00006 00007 int main() { 00008 gfxLcd *glcd = new gfxLcd(); 00009 00010 bitmapImage *bitmap = new bitmapImage("/local/file.bmp"); 00011 00012 // Nice scroller 00013 while(1) 00014 { 00015 for(uint32_t i=160; i+bitmap->fileInfo.cols > 0; i--) 00016 { 00017 bitmap->drawImage(glcd, i, 0); 00018 glcd->update(); 00019 } 00020 } 00021 00022 delete bitmap; 00023 }
Generated on Tue Jul 12 2022 14:13:32 by
1.7.2