I am using win 7-64 arduino 1.8.1, arduino uno. Open brainy-bits HC-SR04 program and it works. Open 12C module with LCD display and it will not compile, same arduino board, same com port,
it saids “error compiling for arduino/genuino uno.” What is happening that it will not compile?
No idea.
Post code, post full error messages.
//20x4 LCD display
//#include <wire.h>
#include <liquidCrystal_12C.h>
#include <LCD.h>
#define I2C_ADDR 0x27 // Add your address here.
#define Rs_pin 0
#define Rw_pin 1
#define En_pin 2
#define BACKLIGHT_PIN 3
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7
//initialize the display at address 0x27
LiquidCrystal_12C LCD (0x27,2,1,0,4,5,6,7,3, positive);
void setup ()
}
Lcd begin (0x27);
}
void Loop ()
{
Lcd.setBackLight (HIGH);
Lcd.setCursor (0,0);
Lcd>print ("RoBoMow");
Lcd.setCursor (0,1);
Lcd.print ("LCD and 12C module");
Lcd.setCursor (0,2);
Lcd.print (" mowing");
delay ( 1000 );
Lcd.setBackLight (LOW);
delay (1000);
}
void Loop ()
oops
Please remember to use code tags when posting code
Lcd begin (0x27);
Double oops
Lcd>print ("RoBoMow");
double oops
void setup ()
}
oops
LiquidCrystal_12C LCD (0x27,2,1,0,4,5,6,7,3, positive);
Should that be "POSITIVE"?
You also gave the address and the pins nice names; why didn't you use them?