// HalloWelt: ....
# include "Arduino.h"
# include "LiquidCrystal.h"
# include "LiquidCrystal.cpp"
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
// the setup routine runs once when you press reset:
void setup()
{
lcd.begin(16, 2); // Set up the LCD's number of columns and rows.
lcd.print("hello, world!"); // Print a message to the LCD.
}
// the loop routine runs over and over again forever:
void loop()
{ // Note: line 1 is the second row, since counting begins with 0).
lcd.setCursor(0, 1); // Set the cursor to column 0, line 1.
lcd.print(millis()/1000); // Print the number of seconds since reset.
}
Lesezeichen