Skip to content

Instantly share code, notes, and snippets.

@gigafide
Created June 10, 2016 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gigafide/31cd69c138d85c1088ffae911fe3a72d to your computer and use it in GitHub Desktop.
Save gigafide/31cd69c138d85c1088ffae911fe3a72d to your computer and use it in GitHub Desktop.
Simple Arduino Smartwatch code
#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