|
|||||||
![]() |
Forum Index > Projects > LED Pegboard and Matrix Projects | ||
Convert a bitmap file to a Peggy2 program |
|||
| | | Printable Version |
|
Mickey | ||||||||
|
A new program has been uploaded to the google code repository that converts a bitmap file to a Peggy2 program. No programming necessary! |
![]() Henchperson ![]() Status: offline
Registered: 10/13/09 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
Mickey, Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Mickey | ||||||||
|
Absolutely. Just remove the include and the one call to _getch(). I only added it so that if Windows users double-click on the app, it displays the quick ref and waits for a keystroke instead of flashing a command window and disappearing. |
![]() Henchperson Status: offline
Registered: 10/13/09 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
Okay-- I got it to compile and execute, but there seems to be some additional platform dependence here. Trying it with the syntax in the readme, I get the error "Incorrect Format, File: Einstein.bmp" Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Mickey | ||||||||
|
Hmm. Could be integer sizes or structure alignment. I thought that #pragma pack(2) was gcc compatible. I will find a Linux VM and see what I can do. It works in Windows, but I should have known the Arduino crowd were Linux fans! |
![]() Henchperson Status: offline
Registered: 10/13/09 |
||||||||
|
|||||||||
|
Mickey | ||||||||
|
Windell, |
![]() Henchperson Status: offline
Registered: 10/13/09 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
Hmmm... Maybe I'll have to try this on Linux, then... Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Mickey | ||||||||
|
Oh, are you on a Mac? Maybe the OS added a Mac resource fork to the file that my program is not expecting. Can you send me the exact file as it is on your machine so I can code around the issue (if indeed that is the issue)? |
![]() Henchperson Status: offline
Registered: 10/13/09 |
||||||||
|
|||||||||
|
Windell | ||||||||
|
Yes, able to run this fine on Linux. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Mickey | ||||||||
|
I was actually able to compile and run it on a Mac. I uploaded an updated version that has instructions for Linux and Mac users. It also includes a Mac executable. It was compiled on OS X 10.4/Tiger, but I think it should run on all OS X Macs. |
![]() Henchperson Status: offline
Registered: 10/13/09 |
||||||||
|
|||||||||
|
Anonymous: Chris | ||||||||
|
I am not sure if this has anything to do with what your talking about but i am on a PC and i cant get this to work to save my life! i have the .bmp ready an everything and i type in the code like you put in your example but i put in the name of my file and it says there is a syntax error. any ideas? I have tried everything i can think of. I am new to Command Prompt so any help would be great. |
|
||||||||
|
|||||||||
|
Mickey | ||||||||
|
Chris, Can you post the exact command line you are typing and the exact error you are getting? |
![]() Henchperson Status: offline
Registered: 10/13/09 |
||||||||
|
|||||||||
|
|
| All times are PDT. The time is now 06:06 AM. |
|
|
Octolively
Interactive LED kits
Meggy Jr RGB
LED matrix game
development kit.
Business-card sized
AVR target boards
Peggy 2
LED Pegboard kits