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 6th July 2009, 04:36 PM   #181
Default

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 by AtomSoft; 6th July 2009 at 04:37 PM.
AtomSoft is offline  
Old 6th July 2009, 05:07 PM   #182
Default

You are doing an excellent job.

Do not worry about anything I said as I was jesting.

Z-buffering - Wikipedia, the free encyclopedia

I am not suggesting you do it as there may not be enough memory and it would be slow. But it may make for interesting reading.
__________________
Please post questions to the forums. PM's are for personal communication.

BCHS/3v0's Tutorials
Junebug USB PIC programmer kit., USB Bit Whacker,
The 15 Minute Printed Circuit Board! (+drill time)
3v0 is offline  
Old 6th July 2009, 08:49 PM   #183
Default

lol supprised someone knew what jesting is besides me

Ill take a look at that in a min just got my internet back on
AtomSoft is offline  
Old 9th July 2009, 02:25 PM   #184
Default

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 by Pavius; 9th July 2009 at 02:26 PM.
Pavius is offline  
Old 10th July 2009, 04:16 AM   #185
Default

Hi

The PIC24 Dev kit Demo file has Bitmap and Font converter.....
http://www.microchip.com/Microchip.WWW.SecureSoftwareList/secsoftwaredownload.aspx?device=en539553〈=en&Retur nURL=http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName =en539553#


Csaba
__________________
I'm could be wrong many time's, at least I know what I'm doing.
http://shop.ebay.ca/merchant/csaba911
csaba911 is offline  
Old 18th July 2009, 10:50 PM   #186
Default

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.
Attached Files
File Type: zip bmptohex.zip (3.6 KB, 19 views)
AtomSoft is offline  
Old 19th July 2009, 12:56 AM   #187
Default

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
};
AtomSoft is offline  
Old 19th July 2009, 04:26 AM   #188
Default

Don't know for sure, but are the pixels on the LCD actually square? ie: Do the physical display dimensions have the same aspect ratio as 96 x 64?

__________________
Inside every little problem, is a big problem trying to get out.
kchriste is online now  
Old 19th July 2009, 12:55 PM   #189
Default

heh never thought of that. Gotta go read the data sheet now .
AtomSoft is offline  
Old 2nd August 2009, 04:58 AM   #190
Default

hey guys my newest creation:

AtomSoft is offline  
Old 2nd August 2009, 05:11 AM   #191
Default

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.
Mr RB is offline  
Old 2nd August 2009, 02:09 PM   #192
Default

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 by AtomSoft; 2nd August 2009 at 02:10 PM.
AtomSoft is offline  
Old 2nd August 2009, 02:55 PM   #193
Default

The MP4 is 4mb and the AVI is 8MB:

http://atomsofttech.info/SonyIROlime...8Nokia7110.mp4
http://atomsofttech.info/GEDC0004.AVI
AtomSoft is offline  
Old 2nd August 2009, 03:10 PM   #194
Default

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
gaspode42 is offline  
Old 2nd August 2009, 03:40 PM   #195
Default

sorry

Try it now.

EDIT:

You can also scroll down on my main page: http://atomsofttech.info/

and see the video.

Last edited by AtomSoft; 2nd August 2009 at 03:42 PM.
AtomSoft is offline  
Reply

Tags
96x64, controller, graphic, lcd, nokia7110, sed1565, w or

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Graphic LCD baberjaved Micro Controllers 2 13th November 2007 05:01 PM
Graphic LCD flemmard Micro Controllers 1 13th September 2007 03:32 AM
interfacing of PIC16F877A with graphic LCD controller T6963c rosamma Micro Controllers 1 24th March 2007 12:29 PM
graphic LCD PIC MCU tom_electronic Micro Controllers 4 28th February 2006 12:29 PM
graphic lcd help jijita General Electronics Chat 1 18th August 2004 07:32 AM



All times are GMT. The time now is 04:53 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker