Show Posts
Pages: [1] 2 3
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 08, 2010, 04:44:00 pm
Quote
was your source image a color bitmap?

I would be interested to see the image file, perhaps you can post it on flickr or similar and paste a link here.

It was a grayscale image; I photoshopped the original off my school's website so that it would be a grayscale bitmap, as that's what the previous program required.  

I cleaned it up a bunch so that it's just the black lines, and none of the varying shades of gray that were surrounding them.


I'm considering re-doing it though, as I'm not 100% satisfied with this result.  I'm also curious to see how it'd treat the original color image as well, so I may do some experimenting smiley

Thanks,


- Jesse
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 08, 2010, 04:30:52 pm
I ended up downloading Processing, and using the glcdBitmap sketch, as you suggested.  There are a few pixels missing, but it's easy enough to open up the image in paint and fix that smiley

Thanks,


- Jesse
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 08, 2010, 04:09:39 pm
VICTORY!  Thank you all so much! smiley-grin


- Jesse
4  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 07, 2010, 10:03:40 pm
Well I finally got the sketch to upload and run.  It's just a bunch of random pixels.  Sigh.  I think I need to find me a new program.


- Jesse
5  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 07, 2010, 07:11:27 pm
I now have a very nice looking Mini displayed on my screen smiley-grin

I just used your header file and wrote my own sketch without looking at yours, just to make sure I was writing to code right.  It appears I am.  I'll just have to try to get my header file working now.

Thanks,


- Jesse
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 07, 2010, 06:55:15 pm
Well I did some more fooling around trying to get it to work, and I got it down to 479, which I'd say is a great improvement from 2000+  ;D

It compiles, and the Arduino runs the code! Except, it doesn't display the image.  

Oh well, starting to make some progress here. smiley

Thanks,


- Jesse
7  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 07, 2010, 06:26:08 pm
Quote
yeah ok, thats the file size on your PC it has little to do with the array size Smiley

in the header file you should see something like:

I'm starting to think that this program didn't work as it's intended to; it doesn't resemble in any way the code you posted, or the code in the ArduinoIcon.h file.  It looks something like this

Code:
#include <avr/pgmspace.h>

const prog_uint8_t  ClarenceFulton [] = {
0x00,
 0x00,
 0x01,
 0x80,
 0x00,
 0x00,
 0x00,
...
...
};

Each value has it's own line, and there's over 2000 of them. :o

Quote
Are you using the KS0108 library?

Yes I am.

8  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 07, 2010, 06:09:34 pm


There's the properties of the header.  I deleted every single comment, it's just the code.  I don't know what's going on.


- Jesse
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 07, 2010, 04:19:22 pm
Well I deleted all the comments (which there were a ridiculous number of), and got the *.h down to 20kb.  Unfortunately, this is still too big, and I'm using more memory than I have.  I guess I'll try to resize the image.


- Jesse
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Bitmap2LCD Issues on: March 07, 2010, 03:49:01 pm
Quote
How big is the .h file (or the image it is created from)? It sounds like you have run out of memory. Which Arduino (chip) do you have?

You appear to have hit the nail on the head!  The *.h file is just under 60kb (yikes!).

How would I go about shrinking this file?  Just decrease the size of the image?

Thanks,


- Jesse
11  Forum 2005-2010 (read only) / Troubleshooting / Bitmap2LCD Issues on: March 07, 2010, 01:48:08 am
I'm a newbie, I'll just throw that out there to start things off smiley

I got my 128x64 Graphical LCD hooked up, and have written a bit of code for it.  Essentially I'm just doing a quick little school project which takes a lot of explaining so we'll leave it at that  smiley-grin

Anywho, I've got a box with text inside it, that was no problem.  However, I want to display my school's logo on the screen above the text.  After much searching I found a couple programs to help out with this: fastLCD, and Bitmap2LCD (which I ended up using).

I opened the image and made the uncompressed array, saved it as a *.h file, and put it in the Arduino directory.  I write the code to display this image, and this is where I run into some issues.  The sketch compiles and uploads just fine, but the Arduino doesn't display anything.  As soon as I remove the code for this one image, the sketch works, and displays the text just fine.

Any suggestions to help me out?  If you want the *.pde and *.h, or anything else, just lemme know!

Thanks,


- Jesse
12  Forum 2005-2010 (read only) / Interfacing / Re: Need Help - PS2Keyboard and GLCD on: April 21, 2010, 09:36:07 pm
Thanks, I'll be sure to try that out tomorrow.


- Jesse
13  Forum 2005-2010 (read only) / Interfacing / Re: Need Help - PS2Keyboard and GLCD on: April 21, 2010, 04:27:19 pm
The cursor is just to keep place of where you are typing.  It's not 100% necesary, but I think it's a nice touch.  When you type a letter, the '_' remains at the bottom of the letter, and the cursor creates another '_' to the right of the previously typed letter.

Thanks,


- Jesse
14  Forum 2005-2010 (read only) / Interfacing / Re: Need Help - PS2Keyboard and GLCD on: April 21, 2010, 04:10:10 pm
Yeah, that was my bad.  Changed the ycoor to 55 and it's working fine now.  All letters and symbols are displaying properly.

The cursor still remains after moving on however.  I don't see any part of the code to deal with that, so I can see why that would happen.  Just am not too sure how to write said code.

Thanks,


- Jesse
15  Forum 2005-2010 (read only) / Interfacing / Re: Need Help - PS2Keyboard and GLCD on: April 21, 2010, 03:53:36 pm
Quote
Why have you set the y coordinate to 61? Most ks0108 displays are only 64 pixels high, so ycoor should be 55 or less.

My LCD is 128x64.  It was working fine in this location before for single letters.  This is just where I wanted it to be, as I've got a simple GUI that I'm working on.

Quote
Did you try the serial test sketch posted above and did that work ok for you?

Yes, that's what my code is based off of.  I simply changed the "serial" to "keyboard".

Quote
I know you want to use it with a keyaboard, but lets first verify that the display logic is working correctly using the serial port. Its possible that the keyboard library is using pins that conflict with the glcd library.

I wired my LCD according to the diagram posted in the Tutorial section, and have done a few other projects using it just fine.  The keyboard uses Pin 3, which is unused by the GLCD Library, and a user-defined pin, which I defined as Pin 2, also not used by the GLCD Library.

Thanks,


- Jesse
Pages: [1] 2 3