Hello
is any bedy have schematic and source to drive nokia 3310 lcd with pic16f628 i am begineer
PIC16F628 With Nokia 3310 LCD
3510i LCD
Now that that one work fine, I’m busy with a program to use the NOKIA 3510i COLOR LCD.
I'ts 132 x 12bit x 132 and can display 4096 colors
At the moment I can only get it to draw lines in different colours, but the text is a bit more difficult.
Any info will be appreciated.
As soon as it’s finish, I’ll post it here.
Anton
I'ts 132 x 12bit x 132 and can display 4096 colors
At the moment I can only get it to draw lines in different colours, but the text is a bit more difficult.
Any info will be appreciated.
As soon as it’s finish, I’ll post it here.
Anton
Re: 3510i LCD
You should use const arrays for implementing font and then to draw letters as they are typed. This is what we did with dsPIC and PIC in general. We created a font, which is nothing else than a bitmat with all characters. If a letter is to be written, then you write a portion of the font which corresponds to the letter.anton wrote:At the moment I can only get it to draw lines in different colours, but the text is a bit more difficult.
Once you succeed in image drawing, you will have fonts as well.
With the version mP/mB 3.0/2.0 you will be able to pass a pointer to const array as a parameter and to set font in this way. You can already do that in mikroC, btw.
There are actually programs which convert fonts into bitmaps. My daughters' Corel setup can create bitmaps from fonts pretty easily. With those small Nokia LCDs, you will need very small fonts; probably 3x5 pixels. The very small fonts need to be hand drawn. Larger ones can (and should) be created using a graphics program which can convert from truetype to greyscale to 1-bit. And the order of conversion makes a difference!
If you have mP 2.16, you don't have the pixel editor. I think the C has it, and I know that dsPIC Pascal has it. The BMP utility has a Nokia option, which allows you to draw pixel-by-pixel, and then automatically generate a const array. If you want to experiment with larger fonts and characters (and icons and images), go to sourceforge, and download the GIMP. It has a learning curve, but it can do anything. And it's free.
If you have mP 2.16, you don't have the pixel editor. I think the C has it, and I know that dsPIC Pascal has it. The BMP utility has a Nokia option, which allows you to draw pixel-by-pixel, and then automatically generate a const array. If you want to experiment with larger fonts and characters (and icons and images), go to sourceforge, and download the GIMP. It has a learning curve, but it can do anything. And it's free.
If you know what you're doing, you're not learning anything.
Re: 3510i LCD
I didn't see that in the mP 3.0 manual. I was wondering about that. In the GLCD library there were a couple of new procedures (GLCD_image and partial image, or something like that), which appeared to require very large arrays. Are those arrays dummy declarations, and how is all of that supposed to work? Maybe some new examples are needed.zristic wrote:With the version mP/mB 3.0/2.0 you will be able to pass a pointer to const array as a parameter and to set font in this way. You can already do that in mikroC, btw.
If you know what you're doing, you're not learning anything.
Re: 3510i LCD
LGR wrote:how is all of that supposed to work?
Code: Select all
program largecosntarray;
const largearr: array[1024] of byte = (.......);
procedure passlargearr(largearrparam: ^byte);
begin
....
end;
begin
...
passlargearr(largearr);
...
end.
Thank you. It's the same way i did with the Nokia 3310 LCD, and thats what i thought i would do.You should use const arrays for implementing font and then to draw letters as they are typed. This is what we did with dsPIC and PIC in general. We created a font, which is nothing else than a bitmat with all characters. If a letter is to be written, then you write a portion of the font which corresponds to the letter.
I'm more strugling to figure out the color look-up table used when in 8bit mode and not 12bit mode for the color.
But give it time.
Anton
Update on Nokia 3510i LCD
Last edited by anton on 19 Jul 2005 01:34, edited 2 times in total.
Another proud user of LV 24-33A Development System and mikroPascal PRO for dsPIC :)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
PortA not working? Add CMCON := 7; PortD not working? Add ADCON1 := 6;
To paste code on the forum, please use the [b] Code [/b] button !! ;)
Image conversion help
hey cool work i am also interfacing the 3510 lcd and i am having trouble in converting the image to a lookup table how did u converted the image??
Re: PIC16F628 With Nokia 3310 LCD
Does anyone have the library from ANTON (http://www.riecktron.com/en/) from MikroBASIC PRO? I want to drive a NOKIA 3310 LCD with a PIC16F887..
Thank you!
Thank you!
My simulation cockpit and other projects: www.numca.gr