Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Graphic LCD 96x64 w/ SED1565 Controller

Status
Not open for further replies.
Lmao lol i read that like 4 times and rewatched the video lol i see what you mean . No hidden lines there i dont know why it looks like it fades in. For some reason it looks like its writing from bottom to top . I think its the controllers issue lol

This is the code for showing that screen:
Code:
	    CLS();
        LCDCube(30,30, 35,35, 15,15);
        SendBuff();

        Delay10KTCYx(70);
        LCDCube(15,30, 20,35, 15,15);
        SendBuff();

        Delay10KTCYx(70);
        LCDCube( 0,30,   5,35, 15,15);
        SendBuff();

        ClearBuff();

Just to show no hidden lines lol... ill post entire library soon its just that i dont want errors in it and i want to comment it more so i can share it without to many poeple saying bad things on it lol
 
Last edited:
Lots of good info in this thread.

A few years back (circa 2004) i wrote an LCD simulator and published it packaged with a then-freeware application called FontGen on microchipc.com. I used FontGen to convert windows fonts into C arrays (with added support of any bitmap to C array). At some point the author told me to take down my copy of FontGen because he started making it available commercially.

I scanned the web and i don't see a freeware alternative to FontGen. Do you guys know of any free app that converts fonts to C arrays w/BMP support?
 
Last edited:
Anyone here dabble in VB6 (Visual Basic 6) ? I noticed my vb6 program seems to be stretching out the bmps from top to bottom slightly. You cant tell really from text but when i convert a image of a circle and some other items to hex code and display it on my lcd its stretched. While i did create the code for both i seem to be stuck on why my vb6 program stretches the image. Ill post the complete source below and can someone please help me.

This code is for non commercial use. DO NOT! sell this. (even tho its simple but heh come on i took alot of time to make this.
 

Attachments

  • bmptohex.zip
    3.6 KB · Views: 168
heh i dont think its my program. I tried these 2 other programs from someone else and same issue. But i doubt its my LCd code. But here is my code to display a image. Ill post a sample image:
(Code is on a ARM but the same code from my PIC version. )
Code:
void LCDImage(const char *image,char top, char left){

	unsigned char widthLoop, heightLoop;
	unsigned char leftH, leftL;
	unsigned char width, height;
        unsigned char temp;

	width = *image++;
	height = *image++;

	height /= 8;

	top += 0xB0;
	//LCD_Send(top,0);

	left += 18;

	leftH = (left >> 4) | 0x10 ;
	leftL = left & 0x0F ;

		for(heightLoop=0;heightLoop<height;heightLoop++){
			LCD_Send(top,0);
			LCD_Send(leftH,0);
			LCD_Send(leftL,0);
			for(widthLoop=0;widthLoop<width;widthLoop++){
                                temp = *image++;
				LCD_Send(temp,1);
			}
			top++;
		}
}

My Image:
Code:
const char Radio[] = 
{
96,64,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x80,0x80,0xC0,0xC0,0xE0,0xE0,0xE0,0xE0,0x60,0x60,0x60,0x60,0x60,0xE0,0xE0,0xE0,0xE0,
0xC0,0xC0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xF8,0x7C,
0x1E,0x0F,0x07,0x07,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x01,0x03,0x03,0x07,0x0F,0x1E,0x3C,0xF8,0xF0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFF,0x3F,0x07,0x00,
0x03,0x03,0x03,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x07,0x07,0x07,0x07,0xFF,0xFF,0xFF,0xFE,0xFE,0xFC,
0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x1F,0xFF,0xFC,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xF8,0xC0,
0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0E,0x0E,0x1E,0xFE,0xFF,0xFF,0xFF,0xFB,0xF3,
0xE1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0xFF,0x7F,0x0F,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x07,
0x1F,0x3E,0x7C,0xF8,0xF8,0xFF,0xFF,0xBF,0x3F,0x3F,0x3F,0x38,0x38,0x00,0x00,0x07,0x1F,0x3F,0x3F,
0x3F,0x3F,0x3E,0x38,0x38,0x30,0x80,0x80,0xC0,0xE0,0xF0,0x78,0x3E,0x1F,0x07,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x03,0x07,0x07,0x07,0x0E,0x0E,0x0E,0x0C,0x1C,0x1C,0x1C,0x1C,
0x1C,0x0C,0x0E,0x0E,0x0E,0x07,0x07,0x03,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,0xCC,0xCC,0xCC,0xFC,0x78,0x00,0x00,0x80,0xC0,
0xE0,0x60,0x60,0xC0,0xE0,0xE0,0x00,0x00,0x80,0xC0,0xE0,0x60,0x60,0xC0,0xFC,0xFC,0x00,0x00,0xEC,
0xEC,0x00,0x00,0x80,0xC0,0xE0,0x60,0x60,0xE0,0xC0,0x80,0x00,0x00,0x78,0xFC,0xCC,0x8C,0x9C,0x08,
0x00,0x00,0xFC,0xFC,0xC0,0x60,0x60,0xE0,0xC0,0x00,0x00,0x80,0xC0,0xE0,0x60,0x60,0xC0,0xE0,0xE0,
0x00,0x00,0x80,0xC0,0xE0,0x60,0x60,0x60,0xE0,0x40,0x00,0x00,0xFC,0xFC,0x00,0x80,0xC0,0x60,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x00,0x01,0x07,0x1E,0x18,0x00,0x00,0x07,
0x0F,0x1C,0x18,0x18,0x0C,0x1F,0x1F,0x00,0x00,0x07,0x0F,0x1C,0x18,0x18,0x0C,0x1F,0x1F,0x00,0x00,
0x1F,0x1F,0x00,0x00,0x07,0x0F,0x1C,0x18,0x18,0x1C,0x0F,0x07,0x00,0x08,0x0C,0x18,0x18,0x19,0x1F,
0x0F,0x00,0x00,0x1F,0x1F,0x00,0x00,0x00,0x1F,0x1F,0x00,0x00,0x07,0x0F,0x1C,0x18,0x18,0x0C,0x1F,
0x1F,0x00,0x00,0x07,0x0F,0x1C,0x18,0x18,0x18,0x1C,0x08,0x00,0x00,0x1F,0x1F,0x03,0x07,0x0C,0x18,
0x10,0x00,0x00,0x18,0x18,0x00,0x00,0x00
};
 
Do you have a non-flash animation that we can download? ie .WMV .AVI etc. Flash is invasive and automated (hence rude forcing people to pay download costs for downloading the flash when they click on the page whether they want to look at it or not), and many people have it disabled.
 
Flash is free and way smaller in size than a AVI so bandwidth shouldnt be a issue. i dont see why not have it just swf? But ill upload a avi to my site 1 minute....
 
Last edited:
Jason,

Just so you are aware if you click on the above links, you get a page not found error (or at least I do!)

Rupert
 
here is my complete code but its for the LPC2148 and im using the Olimex board. Code is written using Crossworks for ARM.

This code will show a start screen with my info then after 2 seconds show another screen for collecting SONY (SIRC) infrared data and displaying it to user. Also makes a special tone for each code recieved from 0-9 and POWER. For power it will tone a going up hill type tone and when pressed again it will sound like somethings falling lol

I was bored :D it sounds real nice tho. My cam wont pick it up well tho. Too noisy i guess.

Ill have to post a C file or another post cuz it wont fit in this one :D

1. The text that you have entered is too long (28434 characters). Please shorten it to 20000 characters long.
2. This forum requires that you wait 30 seconds between posts. Please try again in 11 seconds.

Here is the file then.... its originally a CPP file but had to rename to C so i can upload without ZIPping it. :)
 

Attachments

  • main.c
    28.5 KB · Views: 288
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top