embedded system,arduino,raspberry pi,msp430f169, ARM7

Saturday, March 15, 2014

On 10:28 AM by EDUCATION   No comments
#include <LCD.h>

#define BACKLIGHT_PIN  7//digital pin

#define En_pin  4
#define Rw_pin  5
#define Rs_pin  6
#define D4_pin  0
#define D5_pin  1
#define D6_pin  2
#define D7_pin  3

#define  LED_OFF  0
#define  LED_ON  1


void setup()
{
 lcd.clear();  // Reset the display 
  lcd.home();
  lcd.backlight();  //Backlight ON if under program control 
}

void setup()
{
// Print our characters on the LCD
// NOTE: Line number and character number start at 0 not 1
 
  lcd.setCursor(0,0); //Start at character 0 on line 0
  lcd.print("1: ");
 
  lcd.setCursor(0,1); //Start at character 0 on line 1
  lcd.print("2: ");
}






0 comments:

Post a Comment