mirror of https://github.com/boxtec/tinyLCD_I2C
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
519 B
29 lines
519 B
12 years ago
|
#include <Wire.h>
|
||
|
#include <tinyLCD_I2C.h>
|
||
|
|
||
|
tinyLCD_I2C lcd(0x50,16,2);
|
||
|
float vdd;
|
||
|
|
||
|
void setup()
|
||
|
{
|
||
|
lcd.init(); // initialize the lcd
|
||
|
//lcd.backlight(); // not implemented yet
|
||
|
delay(1);
|
||
|
lcd.print("HELLO - WORLD!");
|
||
|
delay(1200);
|
||
|
lcd.setCursor(0,1);
|
||
|
lcd.print("B-O-X-T-E-C-1-3");
|
||
|
delay(1200);
|
||
|
lcd.showFirmware();
|
||
|
delay(1500);
|
||
|
lcd.clear();
|
||
|
lcd.print("Uptime now (us):");
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
lcd.setCursor(0,1);
|
||
|
lcd.print(millis()/1);
|
||
|
lcd.print(" us");
|
||
|
delay(10);
|
||
|
}
|