by Hidayah » Thu Oct 24, 2013 5:11 pm
thanks alot sir.... my LCD have display the black blok...
my breadboard also have wrong... some hole is not function.
i try upload the simple code into arduino uno board.. but noting happen...
this is my code that copy from arduino example,
i just adjust of "LiquidCrystal lcd(7, 8, 9, 10, 11, 12)" because i connect LCD to arduino board using different pin like i attach :
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup()
{
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello..");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}
- Attachments
-