Skip to content

Instantly share code, notes, and snippets.

@buckeyeworldcitizen
buckeyeworldcitizen / gist:eaebefa76d20e6c828e0
Created October 3, 2014 17:57
code where everything runs fine, but loses 10 mins a week because no RTC
// Display output pin assignments
#define MTEN Display1=Display1 | (1<<0)
#define HALF Display1=Display1 | (1<<1)
#define QUARTER Display1=Display1 | (1<<2)
@buckeyeworldcitizen
buckeyeworldcitizen / gist:5a181aeb94ee8e95579a
Created October 3, 2014 17:57
code that reads rtc fine, displays minutes fine, but no hour displayed
// Display output pin assignments
#define MTEN Display1=Display1 | (1<<0)
#define HALF Display1=Display1 | (1<<1)
#define QUARTER Display1=Display1 | (1<<2)
@buckeyeworldcitizen
buckeyeworldcitizen / gist:404ba00c81a611d50df4
Created September 27, 2014 01:49
code that works but loses time
/**************************************************************************
* *
* W O R D C L O C K - A clock that tells the time using words. *
* *
/**************************************************************************
* *
* W O R D C L O C K - A clock that tells the time using words. *
* *
* Hardware: Arduino Dumelove with a set of individual LEDs under a word *
// Date and time functions using a DS1307 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
#include <Adafruit_NeoPixel.h>
#define pinhap 6
#define pindean 7
#define pinshel 8
RTC_DS1307 RTC;
/**************************************************************************
* *
* W O R D C L O C K - A clock that tells the time using words. *
* *
* Hardware: Arduino Dumelove with a set of individual LEDs under a word *
@buckeyeworldcitizen
buckeyeworldcitizen / bdayclock
Last active February 4, 2019 14:47
Birthday word clock
//Theres two parts to this code: first the birthday part and then the clock part which i had on separate arduinos.
//The first section is original and the second is modified from Joe Caldwell at http://www.highonsolder.com who modified it from Scott Bezek who modified it from Doug Jackson
//Good luck
#include <Wire.h>
#include "RTClib.h"
#include <Adafruit_NeoPixel.h>