please dont rip this site

hitachi lcdtest.c


#include <pic.h>
#include "defs.h"
#include "lcd.h"
#include "delay.h"
// By Andy Kunz

void main (void)
	{
	UINT	i;
	byte	j;
	const byte const UpArrow[] = {0x04, 0x0e, 0x15, 0x04, 0x04, 0x04, 0x04, 0x04};
	const byte const DownArrow[] = {0x04, 0x04, 0x04, 0x04, 0x04, 0x15, 0x0e, 0x04};

	TRISB = 0;
	PORTB = 0;

	lcd_init ();
	lcd_clear ();
	lcd_command (LCD_COMMAND_HOME);				// Home cursor

	lcd_define_char (0, UpArrow);				// Define user-defined char
	lcd_define_char (1, DownArrow);				// Define user-defined char

	lcd_gotoxy (1,1);
	lcd_putc (0);
	lcd_gotoxy (2,1);
	lcd_putc (1);						// Display special character


	lcd_gotoxy (1,8);

	for (j = 0; j < 43; j++)
		{
		lcd_putc ('.');
		for (i = 0; i < 1000; i++)
			delay_mS (1);
		}


	NOP ();
	asm ("goto $-1");
	}

Questions:

See also:


file: /Techref/microchip/language/c/io/lcd/hitachilcd-ak/lcdtest_c.htm, 6KB, , updated: 2008/11/17 16:32, local time: 2020/8/3 17:26, owner: tim-snipertuning-,
TOP NEW HELP FIND: 
18.204.55.168:LOG IN

 ©2020 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/microchip/language/c/io/lcd/hitachilcd-ak/lcdtest_c.htm"> LCD test code</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  LCD Front Panel Set: $8.99!
- 2x16 LCD HD44780 controller
- 4 push buttons - 3 LEDs - 2x12 header
 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .