Created
June 10, 2016 19:46
-
-
Save gigafide/31cd69c138d85c1088ffae911fe3a72d to your computer and use it in GitHub Desktop.
Simple Arduino Smartwatch code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <PCF8814.h> | |
static const byte ledPin = 13; | |
static const byte LCD_WIDTH = 96; | |
static const byte LCD_HEIGHT = 65; | |
static PCF8814 lcd; | |
void setup() { | |
lcd.begin(LCD_WIDTH, LCD_HEIGHT); | |
pinMode(ledPin, OUTPUT); | |
lcd.print("The LCD Totally Works!"); | |
delay(5000); | |
lcd.clear(); | |
} | |
void loop() { | |
lcd.setCursor(0, 0); | |
lcd.print("Visit my website"); | |
lcd.setCursor(40, 1); | |
lcd.print("at:"); | |
lcd.setCursor(0, 2); | |
lcd.print("www.tinkernut.com"); | |
delay(5000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment