Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 7th February 2009, 06:58 PM   #31
Default

Quote:
Originally Posted by Pommie View Post
Here you go.

Mike.
I can not download files(GLCD.zip , unicorn.jpg ) in the first thread can you upload this file again.
thanks.
Electronic2050 is offline  
Old 8th February 2009, 12:24 AM   #32
Default

Try this one:
Unicorn GLCD demo.
AtomSoft is offline  
Old 8th February 2009, 12:31 AM   #33
Default

Quote:
Originally Posted by AtomSoft View Post
Hey i know this thread is kinda old just wanted to say thanks for the code and i modded it slighty to fit a PIC18F448 @ 20 Mhz and here is the code if anyone needs it. (doesnt show that logo and stuff tho.)

I aslo found it does say you need to read the data twice ...
Im not sure if it was meant for that but i would have assumed it was.

Here is my code(your code) , my image and my finding in the datasheet.

Here is a picture of it in action:
Attached Thumbnails
Unicorn GLCD demo.-gedc0129.jpg  
AtomSoft is offline  
Old 8th February 2009, 05:02 PM   #34
Default

thanks (AtomSoft)
i using of GLCD.zip file for interfacing with GLCD and when i send a data or pic and other
to GLCD that appear white and null pixel are black how i inverse the state of all pixel on GLCD
i try to change the "ClearScreen" function on GLCD.c too:

Quote:
void ClearScreen(void){
unsigned char i,j;
b_GLCD_GCS1=1;
b_GLCD_GCS2=1;
for(i=0;i<8;i++){
GLCD_Write_Cmd(0x40); //y=0
GLCD_Write_Cmd(0xb8+i); //x=0
for(j=0;j<0x40;j++)
GLCD_Write_Data(0xff);
}
SetPos(0,0);
}
i change the line "GLCD_Write_Data(0xff);" to "GLCD_Write_Data(0x00);"
for clear lcd with zero but it was same with 0xff.
Electronic2050 is offline  
Old 8th February 2009, 08:27 PM   #35
Arrow

In the function, add change the following

-=Bryan=-



Code:
void PutChar(unsigned char data){
unsigned char i,d;
    if(data<32){
        switch(data){
            case 13:
                XPos=0;
            case 10:
                XPos=0;
                YPos+=8;
                YPos=YPos&63;
        }
        WritePosition();
    }
    else{
        for(i=0;i<7;i++){
            d=Font[data-32][i];
            if(d!=0x55){
                d=~d;                             //ADD
                GLCD_Write_Data(d);
                MoveRight();
            }
        }
        //GLCD_Write_Data(0xff);
       GLCD_Write_Data(0x00);             //CHANGE
        MoveRight();
    }
}
bryan is online now  
Old 11th February 2009, 07:05 PM   #36
Default

thanks bryan i test your change and it work nice.
i need problem with logo, how i change my favorite picture to code that compatible with GLCD.c (putlogo function)
and how work the "putlogo" function?
anyone have software or converter to convert this codes.
Electronic2050 is offline  
Old 13th February 2009, 07:21 AM   #37
Default

anybody can help me?
Electronic2050 is offline  
Old 13th February 2009, 07:27 AM   #38
Default

Not sure what you want to do. Do you want to create your own logo?
bryan is online now  
Old 13th February 2009, 07:42 AM   #39
Default

I have a VB program that I wrote to convert the original logo. It's really badly written and not suitable for general use but I am happy to use it to convert your logo. If you want it converting then just attach it to a post.

Mike.
Pommie is offline  
Old 13th February 2009, 08:09 PM   #40
Default

thanks of bryan and Pommie for reply
thanks Pommie, but i don't need to convert one or two logo.
i need urgent a software for convert logo.
can you give me your software.
Electronic2050 is offline  
Old 13th February 2009, 08:10 PM   #41
Default

thanks of bryan and Pommie for reply
thanks Pommie, but i don't need to convert one or two logo.
i need urgent a software for convert logo.
can you give me your software.
Electronic2050 is offline  
Old 14th February 2009, 10:45 AM   #42
Default

What you can also do is use Microsoft's paintbrush program. Create a image with the attributes 128x64 pixels from Image-->Attributes.

Create/import design your logo. Save as Monochrome bitmap. Once saved open up the image in a program called BMP to ASM. this program will convert the bmp to usable code. The listing at the bottom of the program should be self explanatory.

The program can be found at BMP to PIC table for graphic LCD assembly utility
bryan is online now  
Old 14th February 2009, 02:30 PM   #43
Default

I sometimes use GLCD Generator from Mikro.

mikroC - Advanced C compiler for PIC microcontrollers

If you install the demo it comes with a nice GLCD image converter. You can use it for free. Its a nice tool. Converts BMP to C, BASIC, or PASCAL

When you install the above find this folder:
"C:\Program Files\Mikroelektronika\mikroC\tools\Graphic LCD editor"

and run "glcd_editor.exe" and your set.

You can always create a shortcut to it on your desktop so you can use it when ever you want.

It even has a invert button!

Ill post a screen shot.
Attached Thumbnails
Unicorn GLCD demo.-glc.jpg  

Last edited by AtomSoft; 14th February 2009 at 02:33 PM.
AtomSoft is offline  
Old 14th February 2009, 03:10 PM   #44
Default

I think these converters will work as long as the width is a multiple of 8.

Mike.
Pommie is offline  
Old 14th February 2009, 04:41 PM   #45
Default

lol it should work on anything. As long as your Micro-Controller knows the width and height you shouldnt have a issue.
AtomSoft is offline  
Reply

Tags
demo, glcd, unicorn

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Unicorn Oscilloscope running GLCD 128x64 & Photo blueroomelectronics Micro Controllers 8 18th June 2007 03:06 PM
Help understanding the Unicorn Kyle-s4h Micro Controllers 2 5th June 2007 07:09 PM
Open MultiSim DEMO Files mayo General Electronics Chat 1 3rd May 2007 04:52 PM
mcuStudio an Eclipse based IDE for PIC: flash demo available octal Micro Controllers 0 23rd August 2006 06:44 AM
Honeywell HMR3000 DEMO KIT shermaine General Electronics Chat 5 26th May 2005 09:35 AM



All times are GMT. The time now is 09:15 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker