• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.


Creating Bitmaps

Page history last edited by Akil Srinivasan 9 years ago

BitmapToLCD.class should run on any system with Java 6 : just run java BitmapToLCD yourbitmap.bmp via the command line within the directory you've put BitmapToLCD.class. To store the output to a text file, run java BitmapToLCD yourbitmap.bmp > yourfile.txt


In Windows, you can access a command prompt by typing 'cmd' in Start -> run or 'window icon' -> search in windows 7.  To move to a different directory use the 'cd' command.  Move to the directory with your bitmap file and the BitmapToLCD file (above).  For example, if both of these files are in C:\my_files\ , I would type cd C:\my_files


Then, we run the java program:  java BitmapToLCD yourbitmap.bmp This will output the LCD matrix values to the command window. You can also output to a file. For example, you would type java BitmapToLCD yourbitmap.bmp > yourfile.txt 


You can then copy that matrix into your Arduino .h file. Take a look at  pony_bmp.h in GraphicExample if your're confused.

Comments (0)

You don't have permission to comment on this page.