Saturday, March 15, 2014

lcd with arduino

#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: ");
}






No comments:

Post a Comment

MM32f103 led blink program

To work on mind motion MM32 microcontroller we need to install the keil uvision 5 version then install the mm32-link programmer go to li...