├── .gitignore ├── EAGLE ├── Gerbers.zip ├── MicroWordClock2.pdf ├── Readme.md └── BoM.txt ├── Graphics ├── Dutch 20x20mm.png ├── Dutch2 20x20mm.png ├── English 20x20mm.png ├── German 20x20mm.png ├── Readme.md ├── Dutch 20x20mm.svg └── Dutch2 20x20mm.svg ├── MicroWordClock2-Arduino ├── dutch2.h ├── otherdefs.h ├── Readme.md ├── boards.txt ├── RTClib.h ├── pindefs.h ├── setup.ino ├── isr.ino ├── MicroWordClock2-Arduino.ino ├── dutch.h ├── deutsch.h ├── english.h └── RTClib.cpp ├── Readme.md └── license.md /.gitignore: -------------------------------------------------------------------------------- 1 | *#Old/* 2 | *#Untracked/* 3 | -------------------------------------------------------------------------------- /EAGLE/Gerbers.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17o2/Micro-Word-Clock/HEAD/EAGLE/Gerbers.zip -------------------------------------------------------------------------------- /EAGLE/MicroWordClock2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17o2/Micro-Word-Clock/HEAD/EAGLE/MicroWordClock2.pdf -------------------------------------------------------------------------------- /Graphics/Dutch 20x20mm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17o2/Micro-Word-Clock/HEAD/Graphics/Dutch 20x20mm.png -------------------------------------------------------------------------------- /Graphics/Dutch2 20x20mm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17o2/Micro-Word-Clock/HEAD/Graphics/Dutch2 20x20mm.png -------------------------------------------------------------------------------- /Graphics/English 20x20mm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17o2/Micro-Word-Clock/HEAD/Graphics/English 20x20mm.png -------------------------------------------------------------------------------- /Graphics/German 20x20mm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17o2/Micro-Word-Clock/HEAD/Graphics/German 20x20mm.png -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/dutch2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17o2/Micro-Word-Clock/HEAD/MicroWordClock2-Arduino/dutch2.h -------------------------------------------------------------------------------- /EAGLE/Readme.md: -------------------------------------------------------------------------------- 1 | Please read the notes in the [parent folder](https://github.com/formatc1702/Micro-Word-Clock/tree/master/v2). 2 | -------------------------------------------------------------------------------- /Graphics/Readme.md: -------------------------------------------------------------------------------- 1 | Please read the notes in the [parent folder](https://github.com/formatc1702/Micro-Word-Clock/tree/master/v2). 2 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/otherdefs.h: -------------------------------------------------------------------------------- 1 | // LED matrix pin control 2 | #define FOR_ALLCOLS for(int c=0;c<8;c++) 3 | #define FOR_ALLROWS for(int r=0;r<8;r++) 4 | #define COL_OFF HIGH 5 | #define COL_ON LOW 6 | #define ROW_OFF LOW 7 | #define ROW_ON HIGH 8 | // Refresh rate for each row 9 | #define row_rate refresh_rate/8 10 | #define pixel_rate row_rate/8 11 | 12 | // (sysclock) / (freq*prescaler) 13 | #define SYSCLOCK 8000000 // Hz 14 | #define PRESCALER0 64 15 | #define T0_COMPARE SYSCLOCK / (FREQ_DISPLAY * PRESCALER0) 16 | 17 | #define PRESCALER1 64 18 | #define T1_COMPARE SYSCLOCK / (FREQ_TIMEUPDATE * PRESCALER1) 19 | 20 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/Readme.md: -------------------------------------------------------------------------------- 1 | Please read the notes in the [parent folder](https://github.com/formatc1702/Micro-Word-Clock/tree/master). 2 | 3 | The RTClib.cpp and RTClib.h files can be placed into your Arduino sketchbooks's library/ folder for use in other projects as well. 4 | 5 | Please download Carlos Rodrigues' Barebones ATmega Chips board configuration file: 6 | https://github.com/carlosefr/atmega (instructions inside) 7 | 8 | The boards.txt file is not needed for newer Arduino IDE versions that include the Boards Manager (under Tools -> Board). 9 | 10 | For old versions of the Arduino IDE, it should be placed into a subfolder inside the hardware/ folder of your Arduino sketchbook. E.g. hardware/barebones/boards.txt. 11 | 12 | RTClib code by [JeeLabs](http://jeelabs.org) released to the public domain. 13 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/boards.txt: -------------------------------------------------------------------------------- 1 | ############################################################## 2 | 3 | atmega328Pbb.name=Barebones ATmega328P (8 MHz internal) 4 | 5 | atmega328Pbb.upload.protocol=stk500 6 | atmega328Pbb.upload.maximum_size=30720 7 | atmega328Pbb.upload.speed=57600 8 | 9 | atmega328Pbb.bootloader.low_fuses=0xE2 10 | atmega328Pbb.bootloader.high_fuses=0xDA 11 | atmega328Pbb.bootloader.extended_fuses=0x05 12 | atmega328Pbb.bootloader.path=arduino:atmega 13 | atmega328Pbb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex 14 | atmega328Pbb.bootloader.unlock_bits=0x3F 15 | atmega328Pbb.bootloader.lock_bits=0x0F 16 | 17 | atmega328Pbb.build.mcu=atmega328p 18 | atmega328Pbb.build.f_cpu=8000000L 19 | atmega328Pbb.build.core=arduino:arduino 20 | atmega328Pbb.build.variant=arduino:standard 21 | 22 | 23 | ############################################################## 24 | 25 | atmega328bb.name=Barebones ATmega328 (8 MHz internal) 26 | 27 | atmega328bb.upload.protocol=stk500 28 | atmega328bb.upload.maximum_size=30720 29 | atmega328bb.upload.speed=57600 30 | 31 | atmega328bb.bootloader.low_fuses=0xE2 32 | atmega328bb.bootloader.high_fuses=0xDA 33 | atmega328bb.bootloader.extended_fuses=0x05 34 | atmega328bb.bootloader.path=arduino:atmega 35 | atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex 36 | atmega328bb.bootloader.unlock_bits=0x3F 37 | atmega328bb.bootloader.lock_bits=0x0F 38 | 39 | atmega328bb.build.mcu=atmega328 40 | atmega328bb.build.f_cpu=8000000L 41 | atmega328bb.build.core=arduino:arduino 42 | atmega328bb.build.variant=arduino:standard 43 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/RTClib.h: -------------------------------------------------------------------------------- 1 | // Code by JeeLabs http://news.jeelabs.org/code/ 2 | // Released to the public domain! Enjoy! 3 | 4 | #ifndef _RTCLIB_H_ 5 | #define _RTCLIB_H_ 6 | 7 | // Simple general-purpose date/time class (no TZ / DST / leap second handling!) 8 | class DateTime { 9 | public: 10 | DateTime (uint32_t t =0); 11 | DateTime (uint16_t year, uint8_t month, uint8_t day, 12 | uint8_t hour =0, uint8_t min =0, uint8_t sec =0); 13 | DateTime (const char* date, const char* time); 14 | uint16_t year() const { return 2000 + yOff; } 15 | uint8_t month() const { return m; } 16 | uint8_t day() const { return d; } 17 | uint8_t hour() const { return hh; } 18 | uint8_t minute() const { return mm; } 19 | uint8_t second() const { return ss; } 20 | uint8_t dayOfWeek() const; 21 | 22 | // 32-bit times as seconds since 1/1/2000 23 | long secondstime() const; 24 | // 32-bit times as seconds since 1/1/1970 25 | uint32_t unixtime(void) const; 26 | 27 | protected: 28 | uint8_t yOff, m, d, hh, mm, ss; 29 | }; 30 | 31 | // RTC based on the DS1307 chip connected via I2C and the Wire library 32 | class RTC_DS1307 { 33 | public: 34 | static uint8_t begin(void); 35 | static void adjust(const DateTime& dt); 36 | uint8_t isrunning(void); 37 | static DateTime now(); 38 | }; 39 | 40 | // RTC using the internal millis() clock, has to be initialized before use 41 | // NOTE: this clock won't be correct once the millis() timer rolls over (>49d?) 42 | class RTC_Millis { 43 | public: 44 | static void begin(const DateTime& dt) { adjust(dt); } 45 | static void adjust(const DateTime& dt); 46 | static DateTime now(); 47 | 48 | protected: 49 | static long offset; 50 | }; 51 | 52 | #endif // _RTCLIB_H_ 53 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/pindefs.h: -------------------------------------------------------------------------------- 1 | 2 | // Matching LED rows/columns to the matrix's pins 3 | // to microcontroller ports to microcontroller pins 4 | // to Arduino pin notation. Whew. 5 | 6 | // PORTB: Digital pins (offset 8), PB6/PB7 are XTAL 7 | // PORTC: Analog pins (no offset), PC6 is RESET, PC7 nonexistent 8 | // PORTD: Digital pins (no offset) 9 | 10 | // Pin definitions 11 | #define PIN_BUTTON PD7 12 | 13 | // Mapping Matrix Row/Col numbers to Matrix pins 14 | #define MTX_ROW1 MTX_PIN9 15 | #define MTX_ROW2 MTX_PIN14 16 | #define MTX_ROW3 MTX_PIN8 17 | #define MTX_ROW4 MTX_PIN12 18 | #define MTX_ROW5 MTX_PIN1 19 | #define MTX_ROW6 MTX_PIN7 20 | #define MTX_ROW7 MTX_PIN2 21 | #define MTX_ROW8 MTX_PIN5 22 | 23 | #define MTX_COL1 MTX_PIN13 24 | #define MTX_COL2 MTX_PIN3 25 | #define MTX_COL3 MTX_PIN4 26 | #define MTX_COL4 MTX_PIN10 27 | #define MTX_COL5 MTX_PIN6 28 | #define MTX_COL6 MTX_PIN11 29 | #define MTX_COL7 MTX_PIN15 30 | #define MTX_COL8 MTX_PIN16 31 | 32 | #define MTX_PIN1 SIG_B1 33 | #define MTX_PIN2 SIG_B2 34 | #define MTX_PIN3 SIG_B3 35 | #define MTX_PIN4 SIG_B4 36 | #define MTX_PIN5 SIG_B5 37 | #define MTX_PIN6 SIG_B6 38 | #define MTX_PIN7 SIG_B7 39 | #define MTX_PIN8 SIG_B8 40 | #define MTX_PIN9 SIG_A8 41 | #define MTX_PIN10 SIG_A7 42 | #define MTX_PIN11 SIG_A6 43 | #define MTX_PIN12 SIG_A5 44 | #define MTX_PIN13 SIG_A4 45 | #define MTX_PIN14 SIG_A3 46 | #define MTX_PIN15 SIG_A2 47 | #define MTX_PIN16 SIG_A1 48 | 49 | #define SIG_A1 PC1 50 | #define SIG_A2 PC0 51 | #define SIG_A3 PB2 52 | #define SIG_A4 PB1 53 | #define SIG_A5 PD5 54 | #define SIG_A6 PB0 55 | #define SIG_A7 PD6 56 | #define SIG_A8 PB7 57 | #define SIG_B1 PC2 58 | #define SIG_B2 PC3 59 | #define SIG_B3 PD0 60 | #define SIG_B4 PD1 61 | #define SIG_B5 PD2 62 | #define SIG_B6 PD3 63 | #define SIG_B7 PD4 64 | #define SIG_B8 PB6 65 | 66 | #define PB0 8 67 | #define PB1 9 68 | #define PB2 10 69 | #define PB3 11 70 | #define PB4 12 71 | #define PB5 13 72 | #define PB6 A6 //XTAL1 73 | #define PB7 A7 //XTAL2 74 | 75 | #define PC0 A0 76 | #define PC1 A1 77 | #define PC2 A2 78 | #define PC3 A3 79 | #define PC4 A4 80 | #define PC5 A5 81 | 82 | 83 | #define PD0 0 84 | #define PD1 1 85 | #define PD2 2 86 | #define PD3 3 87 | #define PD4 4 88 | #define PD5 5 89 | #define PD6 6 90 | #define PD7 7 91 | 92 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/setup.ino: -------------------------------------------------------------------------------- 1 | void setup() { 2 | for(int i=0;i<8;i++) { 3 | disp[i] = testdisp[i]; 4 | 5 | // Set normal pins as outputs 6 | pinMode(cols[i],OUTPUT); 7 | pinMode(rows[i],OUTPUT); 8 | digitalWrite(cols[i],COL_OFF); 9 | digitalWrite(rows[i],ROW_OFF); 10 | 11 | // Set A6/A7 (XTAL pins) separately 12 | if(cols[i] == A6) { 13 | DDRB |= B01000000; 14 | if(COL_OFF == true) 15 | PORTB |= B01000000; 16 | else 17 | PORTB &=~ B01000000; 18 | } 19 | else if(cols[i] == A7) { 20 | DDRB |= B10000000; 21 | if(COL_OFF == true) 22 | PORTB |= B10000000; 23 | else 24 | PORTB &=~ B10000000; 25 | } 26 | if(rows[i] == A6) { 27 | DDRB |= B01000000; 28 | if(ROW_OFF == true) 29 | PORTB |= B01000000; 30 | else 31 | PORTB &=~ B01000000; 32 | } 33 | else if(rows[i] == A7) { 34 | DDRB |= B10000000; 35 | if(ROW_OFF == true) 36 | PORTB |= B10000000; 37 | else 38 | PORTB &=~ B10000000; 39 | } 40 | } 41 | 42 | // Set up pins 0 and 1 to set time 43 | pinMode(PIN_BUTTON,INPUT_PULLUP); 44 | 45 | 46 | TCCR2A = 0; 47 | TCCR2B = 0; 48 | TCNT2 = 0; 49 | // set compare match register to match frequency 50 | OCR2A = T0_COMPARE;// = (sysclock)/(freq*prescaler)-1 (must be <256) 51 | // turn on CTC mode 52 | TCCR2A |= (1 << WGM21); 53 | // Set prescaler 54 | TCCR2B |= (1 << CS21); 55 | // enable timer compare interrupt 56 | TIMSK2 |= (1 << OCIE2A); 57 | 58 | // Uncomment following line to keep all LEDs on forever 59 | if(digitalRead(PIN_BUTTON) == LOW) 60 | while(true); 61 | 62 | TCCR1A = 0;// set entire TCCR1A register to 0 63 | TCCR1B = 0;// same for TCCR1B 64 | TCNT1 = 0;// initialize counter value to 0 65 | // set compare match register for 2hz increments 66 | OCR1A = T1_COMPARE;// = (sysclock)/(freq*prescaler)-1 (must be <65536) 67 | // turn on CTC mode 68 | TCCR1A |= (1 << WGM12); 69 | // Set CS12 and CS10 bits for prescaler 70 | TCCR1B |= (1 << CS11) | (1 << CS10); 71 | // enable timer compare interrupt 72 | TIMSK1 |= (1 << OCIE1A); 73 | 74 | 75 | Wire.begin(); 76 | rtc.begin(); 77 | if (!rtc.isrunning() || false) { 78 | //clockmode = NOT_SET; 79 | rtc.adjust(DateTime(__DATE__, __TIME__)); 80 | } 81 | // // Serial.begin(115200); 82 | } 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/isr.ino: -------------------------------------------------------------------------------- 1 | volatile byte isr_col = 0; 2 | volatile byte isr_row = 0; 3 | 4 | ISR(TIMER1_COMPA_vect){ 5 | updatenow = true; 6 | } 7 | 8 | ISR(TIMER2_COMPA_vect){ 9 | // DISABLE CURRENT COL /////////////////////////////// 10 | if(cols[isr_col] == A6) { 11 | if(COL_OFF == true) 12 | PORTB |= B01000000; 13 | else 14 | PORTB &=~ B01000000; 15 | } 16 | else if(cols[isr_col] == A7) { 17 | if(COL_OFF == true) 18 | PORTB |= B10000000; 19 | else 20 | PORTB &=~ B10000000; 21 | } 22 | else { 23 | digitalWrite(cols[isr_col],COL_OFF); 24 | } 25 | // END DISABLE CURRENT COL /////////////////////////////// 26 | 27 | // DISABLE CURRENT ROW /////////////////////////////// 28 | if(rows[isr_row] == A6) { 29 | if(ROW_OFF == true) 30 | PORTB |= B01000000; 31 | else 32 | PORTB &=~ B01000000; 33 | } 34 | else if(rows[isr_row] == A7) { 35 | if(ROW_OFF == true) 36 | PORTB |= B10000000; 37 | else 38 | PORTB &=~ B10000000; 39 | } 40 | else { 41 | digitalWrite(rows[isr_row],ROW_OFF); 42 | } 43 | // END DISABLE CURRENT ROW /////////////////////////////// 44 | 45 | // do { 46 | if(++isr_col == 8) { 47 | isr_col = 0; 48 | if(++isr_row == 8) { 49 | isr_row = 0; 50 | } 51 | } 52 | // } 53 | // while((disp[isr_row] << isr_col) & B10000000 == false); 54 | 55 | 56 | 57 | // ENABLE CURRENT ROW /////////////////////////////// 58 | if(rows[isr_row] == A6) { 59 | if(ROW_ON == true) 60 | PORTB |= B01000000; 61 | else 62 | PORTB &=~ B01000000; 63 | } 64 | else if(rows[isr_row] == A7) { 65 | if(ROW_ON == true) 66 | PORTB |= B10000000; 67 | else 68 | PORTB &=~ B10000000; 69 | } 70 | else { 71 | digitalWrite(rows[isr_row],ROW_ON); 72 | } 73 | // END ENABLE CURRENT ROW /////////////////////////////// 74 | 75 | if((disp[isr_row] << isr_col) & B10000000) { 76 | if(cols[isr_col] == A6) { 77 | if(COL_ON == true) 78 | PORTB |= B01000000; 79 | else 80 | PORTB &=~ B01000000; 81 | } 82 | else if(cols[isr_col] == A7) { 83 | if(COL_ON == true) 84 | PORTB |= B10000000; 85 | else 86 | PORTB &=~ B10000000; 87 | } 88 | else { 89 | digitalWrite(cols[isr_col],COL_ON); 90 | } 91 | } 92 | // END ENABLE CURRENT COL /////////////////////////////// 93 | 94 | } 95 | 96 | 97 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /EAGLE/BoM.txt: -------------------------------------------------------------------------------- 1 | Partlist exported from /Users/daniel/Documents/Development/EAGLE/MicroWordClock/MicroWordClock2/MicroWordClock2.sch at 2014/12/01 13:22 2 | 3 | Part Value Device Package Description MF MPN OC_FARNELL OC_NEWARK TP_SIGNAL_NAME 4 | C1 220nF C-EUC0805 C0805 CAPACITOR, European symbol 5 | C2 2.2uF CPOL-EUB/3528-21R B/3528-21R POLARIZED CAPACITOR, European symbol 6 | IC1 ATMEGA328P MEGA8-AI TQFP32-08 MICROCONTROLLER ATMEGA8-16AU 9171371 73M8863 7 | IC2 DS1307SMD DS1307SMD SO-08M DS1307 - 64×8, Serial, I2C Real Time Clock 8 | JP_A PINHD-1X8CLEANBIG 1X08-CLEANBIG PIN HEADER 9 | JP_B PINHD-1X8CLEANBIG 1X08-CLEANBIG PIN HEADER 10 | S1 SKHMPSE010 SKHMPSE010 SKHMPXE010 6.2 X 6.5mm TACT Switch (SMD) 11 | TP_BAT+ TPB2,54 TPB2,54 B2,54 Test pad 12 | TP_BAT- TPB2,54 TPB2,54 B2,54 Test pad 13 | TP_GND TPB1,27 TPB1,27 B1,27 Test pad 14 | TP_GND1 TPB2,54 TPB2,54 B2,54 Test pad 15 | TP_MISO TPB1,27 TPB1,27 B1,27 Test pad 16 | TP_MOSI TPB1,27 TPB1,27 B1,27 Test pad 17 | TP_RST TPB1,27 TPB1,27 B1,27 Test pad 18 | TP_SCK TPB1,27 TPB1,27 B1,27 Test pad 19 | TP_SWITCH TPB1,27 TPB1,27 B1,27 Test pad 20 | TP_SWITCH_GND TPB1,27 TPB1,27 B1,27 Test pad 21 | TP_VCC TPB1,27 TPB1,27 B1,27 Test pad 22 | TP_VCC1 TPB2,54 TPB2,54 B2,54 Test pad 23 | XTAL XTAL-32KHZ XTAL-32KHZ XTAL-SMD-1206-3216M 24 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/MicroWordClock2-Arduino.ino: -------------------------------------------------------------------------------- 1 | // Libraries 2 | #include 3 | #include "RTClib.h" 4 | 5 | // Local includes 6 | #include "pindefs.h" 7 | #include "otherdefs.h" 8 | 9 | // Customizable options 10 | #include "english.h" // exchange this for the language you need 11 | boolean blink_enable = true; 12 | boolean blinknow = false; 13 | #define FREQ_DISPLAY 1000 // Hz 14 | #define FREQ_TIMEUPDATE 2 // Hz 15 | //unsigned long check_interval = 500; // time update rate 16 | //#define refresh_rate 2560 // display refresh rate in microseconds 17 | 18 | volatile int cols[]={ // PC0,PD4,PB6!,PB3,PD5,PB4,PC2,PC3 19 | MTX_COL1,MTX_COL2,MTX_COL3,MTX_COL4,MTX_COL5,MTX_COL6,MTX_COL7,MTX_COL8}; // ON=LOW 20 | volatile int rows[]={ // PB2,PC1,PD7,PB5,PD2,PD6,PD3,PB7! 21 | MTX_ROW1,MTX_ROW2,MTX_ROW3,MTX_ROW4,MTX_ROW5,MTX_ROW6,MTX_ROW7,MTX_ROW8}; // ON=HIGH 22 | 23 | enum ClockMode { 24 | NORMAL, 25 | SET_MIN, 26 | SET_HRS, 27 | END, 28 | }; 29 | ClockMode clockmode = NORMAL; 30 | 31 | volatile char disp[8]={ 32 | 0B11111111, 33 | 0B11111111, 34 | 0B11111111, 35 | 0B11111111, 36 | 0B11111111, 37 | 0B11111111, 38 | 0B11111111, 39 | 0B11111111, 40 | }; 41 | 42 | char testdisp[8]={ 43 | 0B11111111, 44 | 0B11111111, 45 | 0B11111111, 46 | 0B11111111, 47 | 0B11111111, 48 | 0B11111111, 49 | 0B11111111, 50 | 0B11111111, 51 | }; 52 | 53 | // RTC stuff 54 | RTC_DS1307 rtc; 55 | unsigned long disp_sec; 56 | unsigned long disp_min; 57 | unsigned long disp_hrs; 58 | 59 | volatile boolean updatenow = false; 60 | 61 | boolean buttonState = LOW; 62 | unsigned long buttonMillis = 0; 63 | boolean buttonHandled = true; 64 | 65 | void loop() { 66 | if(updatenow) { 67 | updateTime(); 68 | prepareDisplay(); 69 | updatenow = false; 70 | } 71 | 72 | if(digitalRead(PIN_BUTTON) != buttonState) { 73 | buttonState = digitalRead(PIN_BUTTON); 74 | if(buttonState == LOW) { // button was pressed 75 | buttonMillis = millis(); 76 | buttonHandled = false; 77 | } 78 | else { // button was released 79 | buttonHandled = true; 80 | unsigned long buttonDelay = millis() - buttonMillis; 81 | if(buttonDelay > 100) { // debounce 82 | if(buttonDelay < 1000) { // simple press 83 | updatenow = true; 84 | switch(clockmode) { 85 | case NORMAL: 86 | blink_enable = !blink_enable; 87 | blinknow = true; 88 | TCNT1 = 0; 89 | break; 90 | case SET_MIN: 91 | rtc.adjust(rtc.now().unixtime() + 1*60); 92 | blinknow = true; 93 | TCNT1 = 0; 94 | break; 95 | case SET_HRS: 96 | rtc.adjust(rtc.now().unixtime() + 1*60*60); 97 | blinknow = true; 98 | TCNT1 = 0; 99 | break; 100 | } 101 | } 102 | } 103 | } 104 | } 105 | else { 106 | if(buttonState == LOW && !buttonHandled) { // button is being pressed 107 | unsigned long buttonDelay = millis() - buttonMillis; 108 | if(buttonDelay > 2000) { 109 | blinknow = false; 110 | TCNT1 = 0; 111 | clockmode = (ClockMode)((int)clockmode + 1); 112 | if(clockmode == END) 113 | clockmode = NORMAL; 114 | buttonHandled = true; 115 | updatenow = true; 116 | } 117 | } 118 | } 119 | } 120 | 121 | void updateTime() { 122 | // Adjust 2.5 minutes = 150 seconds forward 123 | // So at 12:03 it already reads "five past 12" 124 | DateTime now = rtc.now().unixtime() + 150; 125 | 126 | disp_sec = now.second(); 127 | disp_min = now.minute(); 128 | disp_hrs = now.hour(); 129 | 130 | disp_min /= 5; 131 | 132 | if(disp_min >= min_offset) 133 | ++disp_hrs %= 12; 134 | else 135 | disp_hrs %= 12; 136 | } 137 | 138 | void prepareDisplay() { 139 | blinknow = !blinknow; 140 | FOR_ALLROWS { 141 | disp[r]=B00000000; 142 | FOR_ALLCOLS { 143 | if((clockmode != SET_MIN || !blinknow)) 144 | disp[r] |= minutes[disp_min][r] & (B10000000 >> c); 145 | if((clockmode != SET_HRS || !blinknow)) 146 | disp[r] |= hours [disp_hrs][r] & (B10000000 >> c); 147 | if(clockmode == NORMAL && blink_enable && !blinknow) 148 | disp[r] |= blinky[r]; 149 | } 150 | } 151 | } 152 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # Micro Word Clock v2 2 | 3 | ## Description 4 | A tiny replica of the famous Word Clock, using only an ATmega microcontroller, a DS1307 Real Time Clock and a few passive components to display the time on an 8x8 LED matrix. The letters have been printed onto a transparent sheet and glued over the LEDs to produce a readable time. 5 | See the YouTube video [here](https://www.youtube.com/watch?v=9ko9CeylUTs). 6 | 7 | ## Directory structure 8 | - **MicroWordClock2-Arduino** contains the firmware, including pin definitions for the LED matrix and location of the words in each language. 9 | - **EAGLE** contains the schematic and PCB design files for the proejct. 10 | - **Graphics** contains the design for the transparency sheet to place over the LED matrix to form the words, designed in Inkscape. Contributions in more languages are welcome! 11 | 12 | ## Bill of Materials 13 | 14 | | | Part name | Package size | [Reichelt](http://reichelt.de) part number | 15 | |------------|--------------------|------------------------------|--------------------------------------------------------------------------------------------------------------------------------| 16 | | IC1 | ATmega328P-AU | TQFP-32 | ATMEGA 328P-AU | 17 | | IC2 | DS1307Z+ | SO-8 | DS 1307Z | 18 | | C1 | 220nF ceramic | 2012 metric / 0805 imperial | X7R-G0805 0,22µ | 19 | | C2 | 2.2uF tantalum | 3528 metric / B-case | SMD TAN.2,2/20 | 20 | | S1 | SMD push button | 6.2x6.5mm | TASTER 9314 | 21 | | XTAL | 32.768 kHz crystal | 3216 metric / 1206 imperial | 32,768 CC7V-12,5 | 22 | | LED matrix | 8x8 matrix | 20x20mm | [GYXM-788ASR](http://eud.dx.com/product/lson-788-8-x-8-red-led-display-dot-matrix-module-black-white-844302671)* (DealExtreme) | 23 | | PCB | | 20x20mm | [OshPark](https://oshpark.com/shared_projects/NkANAgow) | 24 | \* Probably any LED matrix labeled 788 should work. 25 | 26 | You will require an In-System Programmer (ISP) to write the firmware onto the microcontroller. 27 | 28 | ## Burning the bootloader and uploading the sketch 29 | Please read these two tutorials if you are unfamiliar with burning a bootloader: 30 | - http://arduino.cc/en/Tutorial/ArduinoISP 31 | - http://arduino.cc/en/Tutorial/ArduinoToBreadboard 32 | 33 | The required procedure is the one described as "AVR on a breadboard" and "Minimal circuit", respectively, as there is no external crystal attached to the microcontroller. 34 | 35 | Please download Carlos Rodrigues' Barebones ATmega Chips board configuration file: 36 | https://github.com/carlosefr/atmega (instructions inside) 37 | 38 | The ICSP header on the Micro Word Clock PCB is the standard layout described [here](http://www.atmel.com/images/doc0943.pdf) (Fig. 2). 39 | 40 | ## Contributions 41 | Carl Monk has built [his own version](http://fortoffee.org.uk/2014/12/word-clock-with-a-unicorn/) using a [Unicorn HAT](http://shop.pimoroni.com/products/unicorn-hat). 42 | 43 | [quistoph](https://github.com/qistoph) has made a Dutch layout. 44 | 45 | Tanguy Rewers independently came up with an alternative Dutch layout (labeled as dutch2). 46 | 47 | ## Featured on 48 | - [Hackaday](http://hackaday.com/2014/11/29/micro-word-clock/) 49 | - [Gizmodo](http://gizmodo.com/build-a-tiny-version-of-those-pricey-word-clocks-on-the-1665134624) 50 | - [The Atmel Blog](http://blog.atmel.com/2014/12/01/build-your-own-micro-word-clock-with-an-atmega328p/) 51 | 52 | ## License 53 | This project (both software and hardware) is published under a [Creative Commons BY-SA 3.0 License](http://creativecommons.org/licenses/by-sa/3.0/). 54 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/dutch.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | KTVIEJFN 4 | WARTVOOR 5 | OVERHALF 6 | VIJF*EEN 7 | TWEEAALF 8 | ZNESVGEN 9 | TDRVIENR 10 | ACHTQUUR 11 | 12 | // */ 13 | 14 | const int min_offset=4; // 12:00 + 4*5 min = 10 voor half EEN 15 | 16 | const char minutes[12][8] ={ 17 | { // uur 18 | 0B00000000, 19 | 0B00000000, 20 | 0B00000000, 21 | 0B00000000, 22 | 0B00000000, 23 | 0B00000000, 24 | 0B00000000, 25 | 0B00000111 26 | } 27 | , { // vijf over 28 | 0B00110110, 29 | 0B00000000, 30 | 0B11110000, 31 | 0B00000000, 32 | 0B00000000, 33 | 0B00000000, 34 | 0B00000000, 35 | 0B00000000 36 | } 37 | , { // tien over 38 | 0B01011001, 39 | 0B00000000, 40 | 0B11110000, 41 | 0B00000000, 42 | 0B00000000, 43 | 0B00000000, 44 | 0B00000000, 45 | 0B00000000 46 | } 47 | ,{ // kwart over 48 | 0B10000000, 49 | 0B11110000, 50 | 0B11110000, 51 | 0B00000000, 52 | 0B00000000, 53 | 0B00000000, 54 | 0B00000000, 55 | 0B00000000 56 | } 57 | ,{ // tien voor half 58 | 0B01011001, 59 | 0B00001111, 60 | 0B00001111, 61 | 0B00000000, 62 | 0B00000000, 63 | 0B00000000, 64 | 0B00000000, 65 | 0B00000000 66 | } 67 | ,{ // vijf voor half 68 | 0B00110110, 69 | 0B00001111, 70 | 0B00001111, 71 | 0B00000000, 72 | 0B00000000, 73 | 0B00000000, 74 | 0B00000000 75 | } 76 | ,{ // half 77 | 0B00000000, 78 | 0B00000000, 79 | 0B00001111, 80 | 0B00000000, 81 | 0B00000000, 82 | 0B00000000, 83 | 0B00000000, 84 | 0B00000000 85 | } 86 | ,{ // vijf over half 87 | 0B00110110, 88 | 0B00000000, 89 | 0B11111111, 90 | 0B00000000, 91 | 0B00000000, 92 | 0B00000000, 93 | 0B00000000, 94 | 0B00000000 95 | } 96 | ,{ // tien over half 97 | 0B01011001, 98 | 0B00000000, 99 | 0B11111111, 100 | 0B00000000, 101 | 0B00000000, 102 | 0B00000000, 103 | 0B00000000, 104 | 0B00000000 105 | } 106 | ,{ // kwart voor 107 | 0B10000000, 108 | 0B11111111, 109 | 0B00000000, 110 | 0B00000000, 111 | 0B00000000, 112 | 0B00000000, 113 | 0B00000000, 114 | 0B00000000 115 | } 116 | ,{ // tien voor 117 | 0B01011001, 118 | 0B00001111, 119 | 0B00000000, 120 | 0B00000000, 121 | 0B00000000, 122 | 0B00000000, 123 | 0B00000000, 124 | 0B00000000 125 | } 126 | ,{ // vijf voor 127 | 0B00110110, 128 | 0B00001111, 129 | 0B00000000, 130 | 0B00000000, 131 | 0B00000000, 132 | 0B00000000, 133 | 0B00000000, 134 | 0B00000000 135 | } 136 | }; 137 | 138 | const char hours[12][8] ={ 139 | { // twaalf 140 | 0B00000000, 141 | 0B00000000, 142 | 0B00000000, 143 | 0B00000000, 144 | 0B11001111, 145 | 0B00000000, 146 | 0B00000000, 147 | 0B00000000 148 | } 149 | ,{ // een 150 | 0B00000000, 151 | 0B00000000, 152 | 0B00000000, 153 | 0B00000111, 154 | 0B00000000, 155 | 0B00000000, 156 | 0B00000000, 157 | 0B00000000 158 | } 159 | ,{ // twee 160 | 0B00000000, 161 | 0B00000000, 162 | 0B00000000, 163 | 0B00000000, 164 | 0B11110000, 165 | 0B00000000, 166 | 0B00000000, 167 | 0B00000000 168 | } 169 | ,{ // drie 170 | 0B00000000, 171 | 0B00000000, 172 | 0B00000000, 173 | 0B00000000, 174 | 0B00000000, 175 | 0B00000000, 176 | 0B01101100, 177 | 0B00000000 178 | } 179 | ,{ // vier 180 | 0B00000000, 181 | 0B00000000, 182 | 0B00000000, 183 | 0B00000000, 184 | 0B00000000, 185 | 0B00000000, 186 | 0B00011101, 187 | 0B00000000 188 | } 189 | ,{ // vijf 190 | 0B00000000, 191 | 0B00000000, 192 | 0B00000000, 193 | 0B11110000, 194 | 0B00000000, 195 | 0B00000000, 196 | 0B00000000, 197 | 0B00000000 198 | } 199 | ,{ // zes 200 | 0B00000000, 201 | 0B00000000, 202 | 0B00000000, 203 | 0B00000000, 204 | 0B00000000, 205 | 0B10110000, 206 | 0B00000000, 207 | 0B00000000 208 | } 209 | ,{ // zeven 210 | 0B00000000, 211 | 0B00000000, 212 | 0B00000000, 213 | 0B00000000, 214 | 0B00000000, 215 | 0B10101011, 216 | 0B00000000, 217 | 0B00000000 218 | } 219 | ,{ // acht 220 | 0B00000000, 221 | 0B00000000, 222 | 0B00000000, 223 | 0B00000000, 224 | 0B00000000, 225 | 0B00000000, 226 | 0B00000000, 227 | 0B11110000 228 | } 229 | ,{ // negen 230 | 0B00000000, 231 | 0B00000000, 232 | 0B00000000, 233 | 0B00000000, 234 | 0B00000000, 235 | 0B01100111, 236 | 0B00000000, 237 | 0B00000000 238 | } 239 | ,{ // tien 240 | 0B00000000, 241 | 0B00000000, 242 | 0B00000000, 243 | 0B00000000, 244 | 0B00000000, 245 | 0B00000000, 246 | 0B10001110, 247 | 0B00000000 248 | } 249 | ,{ // elf 250 | 0B00000000, 251 | 0B00000000, 252 | 0B00000000, 253 | 0B00000000, 254 | 0B00010011, 255 | 0B00000000, 256 | 0B00000000, 257 | 0B00000000 258 | } 259 | }; 260 | 261 | const char blinky[8] ={ 262 | 0B00000000, 263 | 0B00000000, 264 | 0B00000000, 265 | 0B00001000, 266 | 0B00000000, 267 | 0B00000000, 268 | 0B00000000, 269 | 0B00000000 270 | }; 271 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/deutsch.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | FÜNFZEHN 4 | VORNACH* 5 | HALBACHT 6 | EINSECHS 7 | SIEZWÖLF 8 | BENDREIÜ 9 | *ZEHNEUN 10 | VIER*ELF 11 | 12 | // */ 13 | 14 | const int min_offset=4; // 12:00 + 5*4 min = zehn vor halb EINS 15 | 16 | const char minutes[12][8] ={ 17 | { // punkt 18 | 0B00000000, 19 | 0B00000000, 20 | 0B00000000, 21 | 0B00000000, 22 | 0B00000000, 23 | 0B00000000, 24 | 0B00000000, 25 | 0B00000000 26 | } 27 | , { // fuenf nach 28 | 0B11110000, 29 | 0B00011110, 30 | 0B00000000, 31 | 0B00000000, 32 | 0B00000000, 33 | 0B00000000, 34 | 0B00000000, 35 | 0B00000000 36 | } 37 | , { // zehn nach 38 | 0B00001111, 39 | 0B00011110, 40 | 0B00000000, 41 | 0B00000000, 42 | 0B00000000, 43 | 0B00000000, 44 | 0B00000000, 45 | 0B00000000 46 | } 47 | ,{ // fuenfzehn nach 48 | 0B11111111, 49 | 0B00011110, 50 | 0B00000000, 51 | 0B00000000, 52 | 0B00000000, 53 | 0B00000000, 54 | 0B00000000, 55 | 0B00000000 56 | } 57 | ,{ // zehn vor halb 58 | 0B00001111, 59 | 0B11100000, 60 | 0B11110000, 61 | 0B00000000, 62 | 0B00000000, 63 | 0B00000000, 64 | 0B00000000, 65 | 0B00000000 66 | } 67 | ,{ // fuenf vor halb 68 | 0B11110000, 69 | 0B11100000, 70 | 0B11110000, 71 | 0B00000000, 72 | 0B00000000, 73 | 0B00000000, 74 | 0B00000000 75 | } 76 | ,{ // halb 77 | 0B00000000, 78 | 0B00000000, 79 | 0B11110000, 80 | 0B00000000, 81 | 0B00000000, 82 | 0B00000000, 83 | 0B00000000, 84 | 0B00000000 85 | } 86 | ,{ // fuenf nach halb 87 | 0B11110000, 88 | 0B00011110, 89 | 0B11110000, 90 | 0B00000000, 91 | 0B00000000, 92 | 0B00000000, 93 | 0B00000000, 94 | 0B00000000 95 | } 96 | ,{ // zehn nach halb 97 | 0B00001111, 98 | 0B00011110, 99 | 0B11110000, 100 | 0B00000000, 101 | 0B00000000, 102 | 0B00000000, 103 | 0B00000000, 104 | 0B00000000 105 | } 106 | ,{ // fuenfzehn vor 107 | 0B11111111, 108 | 0B11100000, 109 | 0B00000000, 110 | 0B00000000, 111 | 0B00000000, 112 | 0B00000000, 113 | 0B00000000, 114 | 0B00000000 115 | } 116 | ,{ // zehn vor 117 | 0B00001111, 118 | 0B11100000, 119 | 0B00000000, 120 | 0B00000000, 121 | 0B00000000, 122 | 0B00000000, 123 | 0B00000000, 124 | 0B00000000 125 | } 126 | ,{ 127 | 0B11110000, 128 | 0B11100000, 129 | 0B00000000, 130 | 0B00000000, 131 | 0B00000000, 132 | 0B00000000, 133 | 0B00000000, 134 | 0B00000000 135 | } 136 | }; 137 | 138 | const char hours[12][8] ={ 139 | { // zwoelf 140 | 0B00000000, 141 | 0B00000000, 142 | 0B00000000, 143 | 0B00000000, 144 | 0B00011111, 145 | 0B00000000, 146 | 0B00000000, 147 | 0B00000000 148 | } 149 | ,{ // eins 150 | 0B00000000, 151 | 0B00000000, 152 | 0B00000000, 153 | 0B11110000, 154 | 0B00000000, 155 | 0B00000000, 156 | 0B00000000, 157 | 0B00000000 158 | } 159 | ,{ // zwei 160 | 0B00000000, 161 | 0B00000000, 162 | 0B00000000, 163 | 0B00000000, 164 | 0B00011000, 165 | 0B00000110, 166 | 0B00000000, 167 | 0B00000000, 168 | } 169 | ,{ // drei 170 | 0B00000000, 171 | 0B00000000, 172 | 0B00000000, 173 | 0B00000000, 174 | 0B00000000, 175 | 0B00011110, 176 | 0B00000000, 177 | 0B00000000, 178 | } 179 | ,{ // vier 180 | 0B00000000, 181 | 0B00000000, 182 | 0B00001111, 183 | 0B00000000, 184 | 0B00000000, 185 | 0B00000000, 186 | 0B00000000, 187 | 0B00000000, 188 | } 189 | ,{ // fuenf 190 | 0B00000000, 191 | 0B00000000, 192 | 0B00000000, 193 | 0B00000000, 194 | 0B00000001, 195 | 0B00000001, 196 | 0B00000001, 197 | 0B00000001, 198 | } 199 | ,{ // sechs 200 | 0B00000000, 201 | 0B00000000, 202 | 0B00000000, 203 | 0B00011111, 204 | 0B00000000, 205 | 0B00000000, 206 | 0B00000000, 207 | 0B00000000, 208 | } 209 | ,{ // sieben 210 | 0B00000000, 211 | 0B00000000, 212 | 0B00000000, 213 | 0B00000000, 214 | 0B11100000, 215 | 0B11100000, 216 | 0B00000000, 217 | 0B00000000, 218 | } 219 | ,{ // acht 220 | 0B00000000, 221 | 0B00000000, 222 | 0B00000000, 223 | 0B00000000, 224 | 0B00000000, 225 | 0B00000000, 226 | 0B00000000, 227 | 0B11110000, 228 | } 229 | ,{ // neun 230 | 0B00000000, 231 | 0B00000000, 232 | 0B00000000, 233 | 0B00000000, 234 | 0B00000000, 235 | 0B00000000, 236 | 0B00001111, 237 | 0B00000000, 238 | } 239 | ,{ // zehn 240 | 0B00000000, 241 | 0B00000000, 242 | 0B00000000, 243 | 0B00000000, 244 | 0B00000000, 245 | 0B00000000, 246 | 0B01111000, 247 | 0B00000000, 248 | } 249 | ,{ // elf 250 | 0B00000000, 251 | 0B00000000, 252 | 0B00000000, 253 | 0B00000000, 254 | 0B00000000, 255 | 0B00000000, 256 | 0B00000000, 257 | 0B00000111, 258 | } 259 | }; 260 | 261 | const char blinky[8] ={ 262 | 0B00000000, 263 | 0B00000001, 264 | 0B00000000, 265 | 0B00000000, 266 | 0B00000000, 267 | 0B00000000, 268 | 0B00000000, 269 | 0B00000000 270 | }; 271 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/english.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | HATWENTY 4 | FIFVTEEN 5 | LF*PASTO 6 | NINEIGHT 7 | ONETHREE 8 | TWELEVEN 9 | FOURFIVE 10 | SIXSEVEN 11 | 12 | // */ 13 | 14 | const int min_offset=7; // 12:00 + 5*7 min = twentyfive to ONE 15 | 16 | const char minutes[12][8] ={ 17 | { // o'clock 18 | 0B00000000, 19 | 0B00000000, 20 | 0B00000000, 21 | 0B00000000, 22 | 0B00000000, 23 | 0B00000000, 24 | 0B00000000, 25 | 0B00000000 26 | } 27 | , { // five past 28 | 0B00000000, 29 | 0B11010100, 30 | 0B00011110, 31 | 0B00000000, 32 | 0B00000000, 33 | 0B00000000, 34 | 0B00000000, 35 | 0B00000000 36 | } 37 | , { // ten past 38 | 0B00000000, 39 | 0B00001101, 40 | 0B00011110, 41 | 0B00000000, 42 | 0B00000000, 43 | 0B00000000, 44 | 0B00000000, 45 | 0B00000000 46 | } 47 | ,{ // fifteen past 48 | 0B00000000, 49 | 0B11101111, 50 | 0B00011110, 51 | 0B00000000, 52 | 0B00000000, 53 | 0B00000000, 54 | 0B00000000, 55 | 0B00000000 56 | } 57 | ,{ // twenty past 58 | 0B00111111, 59 | 0B00000000, 60 | 0B00011110, 61 | 0B00000000, 62 | 0B00000000, 63 | 0B00000000, 64 | 0B00000000, 65 | 0B00000000 66 | } 67 | ,{ // twentyfive past 68 | 0B00111111, 69 | 0B11010100, 70 | 0B00011110, 71 | 0B00000000, 72 | 0B00000000, 73 | 0B00000000, 74 | 0B00000000, 75 | 0B00000000 76 | } 77 | ,{ // half past 78 | 0B11000000, 79 | 0B00000000, 80 | 0B11011110, 81 | 0B00000000, 82 | 0B00000000, 83 | 0B00000000, 84 | 0B00000000, 85 | 0B00000000 86 | } 87 | ,{ // twentyfive to 88 | 0B00111111, 89 | 0B11010100, 90 | 0B00000011, 91 | 0B00000000, 92 | 0B00000000, 93 | 0B00000000, 94 | 0B00000000, 95 | 0B00000000 96 | } 97 | ,{ // twenty to 98 | 0B00111111, 99 | 0B00000000, 100 | 0B00000011, 101 | 0B00000000, 102 | 0B00000000, 103 | 0B00000000, 104 | 0B00000000, 105 | 0B00000000 106 | } 107 | ,{ // fifteen to 108 | 0B00000000, 109 | 0B11101111, 110 | 0B00000011, 111 | 0B00000000, 112 | 0B00000000, 113 | 0B00000000, 114 | 0B00000000, 115 | 0B00000000 116 | } 117 | ,{ // ten to 118 | 0B00000000, 119 | 0B00001101, 120 | 0B00000011, 121 | 0B00000000, 122 | 0B00000000, 123 | 0B00000000, 124 | 0B00000000, 125 | 0B00000000 126 | } 127 | ,{ // five to 128 | 0B00000000, 129 | 0B11010100, 130 | 0B00000011, 131 | 0B00000000, 132 | 0B00000000, 133 | 0B00000000, 134 | 0B00000000, 135 | 0B00000000 136 | } 137 | }; 138 | 139 | const char hours[12][8] ={ 140 | { // twelve 141 | 0B00000000, 142 | 0B00000000, 143 | 0B00000000, 144 | 0B00000000, 145 | 0B00000000, 146 | 0B11110110, 147 | 0B00000000, 148 | 0B00000000 149 | } 150 | ,{ // one 151 | 0B00000000, 152 | 0B00000000, 153 | 0B00000000, 154 | 0B00000000, 155 | 0B11100000, 156 | 0B00000000, 157 | 0B00000000, 158 | 0B00000000 159 | } 160 | ,{ // two 161 | 0B00000000, 162 | 0B00000000, 163 | 0B00000000, 164 | 0B00000000, 165 | 0B00000000, 166 | 0B11000000, 167 | 0B01000000, 168 | 0B00000000 169 | } 170 | ,{ // three 171 | 0B00000000, 172 | 0B00000000, 173 | 0B00000000, 174 | 0B00000000, 175 | 0B00011111, 176 | 0B00000000, 177 | 0B00000000, 178 | 0B00000000 179 | } 180 | ,{ // four 181 | 0B00000000, 182 | 0B00000000, 183 | 0B00000000, 184 | 0B00000000, 185 | 0B00000000, 186 | 0B00000000, 187 | 0B11110000, 188 | 0B00000000 189 | } 190 | ,{ // five 191 | 0B00000000, 192 | 0B00000000, 193 | 0B00000000, 194 | 0B00000000, 195 | 0B00000000, 196 | 0B00000000, 197 | 0B00001111, 198 | 0B00000000 199 | } 200 | ,{ // six 201 | 0B00000000, 202 | 0B00000000, 203 | 0B00000000, 204 | 0B00000000, 205 | 0B00000000, 206 | 0B00000000, 207 | 0B00000000, 208 | 0B11100000 209 | } 210 | ,{ // seven 211 | 0B00000000, 212 | 0B00000000, 213 | 0B00000000, 214 | 0B00000000, 215 | 0B00000000, 216 | 0B00000000, 217 | 0B00000000, 218 | 0B00011111 219 | } 220 | ,{ // eight 221 | 0B00000000, 222 | 0B00000000, 223 | 0B00000000, 224 | 0B00011111, 225 | 0B00000000, 226 | 0B00000000, 227 | 0B00000000, 228 | 0B00000000 229 | } 230 | ,{ // nine 231 | 0B00000000, 232 | 0B00000000, 233 | 0B00000000, 234 | 0B11110000, 235 | 0B00000000, 236 | 0B00000000, 237 | 0B00000000, 238 | 0B00000000 239 | } 240 | ,{ // ten 241 | 0B00000000, 242 | 0B00000000, 243 | 0B00000000, 244 | 0B00000001, 245 | 0B00000001, 246 | 0B00000001, 247 | 0B00000000, 248 | 0B00000000 249 | } 250 | ,{ // eleven 251 | 0B00000000, 252 | 0B00000000, 253 | 0B00000000, 254 | 0B00000000, 255 | 0B00000000, 256 | 0B00111111, 257 | 0B00000000, 258 | 0B00000000 259 | } 260 | }; 261 | 262 | const char blinky[8] ={ 263 | 0B00000000, 264 | 0B00000000, 265 | 0B00100000, 266 | 0B00000000, 267 | 0B00000000, 268 | 0B00000000, 269 | 0B00000000, 270 | 0B00000000 271 | }; 272 | -------------------------------------------------------------------------------- /MicroWordClock2-Arduino/RTClib.cpp: -------------------------------------------------------------------------------- 1 | // Code by JeeLabs http://news.jeelabs.org/code/ 2 | // Released to the public domain! Enjoy! 3 | 4 | #include 5 | #include "RTClib.h" 6 | #ifdef __AVR__ 7 | #include 8 | #define WIRE Wire 9 | #else 10 | #define PROGMEM 11 | #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) 12 | #define WIRE Wire1 13 | #endif 14 | 15 | #define DS1307_ADDRESS 0x68 16 | #define SECONDS_PER_DAY 86400L 17 | 18 | #define SECONDS_FROM_1970_TO_2000 946684800 19 | 20 | #if (ARDUINO >= 100) 21 | #include // capital A so it is error prone on case-sensitive filesystems 22 | #else 23 | #include 24 | #endif 25 | 26 | //////////////////////////////////////////////////////////////////////////////// 27 | // utility code, some of this could be exposed in the DateTime API if needed 28 | 29 | const uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 }; 30 | 31 | // number of days since 2000/01/01, valid for 2001..2099 32 | static uint16_t date2days(uint16_t y, uint8_t m, uint8_t d) { 33 | if (y >= 2000) 34 | y -= 2000; 35 | uint16_t days = d; 36 | for (uint8_t i = 1; i < m; ++i) 37 | days += pgm_read_byte(daysInMonth + i - 1); 38 | if (m > 2 && y % 4 == 0) 39 | ++days; 40 | return days + 365 * y + (y + 3) / 4 - 1; 41 | } 42 | 43 | static long time2long(uint16_t days, uint8_t h, uint8_t m, uint8_t s) { 44 | return ((days * 24L + h) * 60 + m) * 60 + s; 45 | } 46 | 47 | //////////////////////////////////////////////////////////////////////////////// 48 | // DateTime implementation - ignores time zones and DST changes 49 | // NOTE: also ignores leap seconds, see http://en.wikipedia.org/wiki/Leap_second 50 | 51 | DateTime::DateTime (uint32_t t) { 52 | t -= SECONDS_FROM_1970_TO_2000; // bring to 2000 timestamp from 1970 53 | 54 | ss = t % 60; 55 | t /= 60; 56 | mm = t % 60; 57 | t /= 60; 58 | hh = t % 24; 59 | uint16_t days = t / 24; 60 | uint8_t leap; 61 | for (yOff = 0; ; ++yOff) { 62 | leap = yOff % 4 == 0; 63 | if (days < 365 + leap) 64 | break; 65 | days -= 365 + leap; 66 | } 67 | for (m = 1; ; ++m) { 68 | uint8_t daysPerMonth = pgm_read_byte(daysInMonth + m - 1); 69 | if (leap && m == 2) 70 | ++daysPerMonth; 71 | if (days < daysPerMonth) 72 | break; 73 | days -= daysPerMonth; 74 | } 75 | d = days + 1; 76 | } 77 | 78 | DateTime::DateTime (uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t min, uint8_t sec) { 79 | if (year >= 2000) 80 | year -= 2000; 81 | yOff = year; 82 | m = month; 83 | d = day; 84 | hh = hour; 85 | mm = min; 86 | ss = sec; 87 | } 88 | 89 | static uint8_t conv2d(const char* p) { 90 | uint8_t v = 0; 91 | if ('0' <= *p && *p <= '9') 92 | v = *p - '0'; 93 | return 10 * v + *++p - '0'; 94 | } 95 | 96 | // A convenient constructor for using "the compiler's time": 97 | // DateTime now (__DATE__, __TIME__); 98 | // NOTE: using PSTR would further reduce the RAM footprint 99 | DateTime::DateTime (const char* date, const char* time) { 100 | // sample input: date = "Dec 26 2009", time = "12:34:56" 101 | yOff = conv2d(date + 9); 102 | // Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 103 | switch (date[0]) { 104 | case 'J': m = date[1] == 'a' ? 1 : m = date[2] == 'n' ? 6 : 7; break; 105 | case 'F': m = 2; break; 106 | case 'A': m = date[2] == 'r' ? 4 : 8; break; 107 | case 'M': m = date[2] == 'r' ? 3 : 5; break; 108 | case 'S': m = 9; break; 109 | case 'O': m = 10; break; 110 | case 'N': m = 11; break; 111 | case 'D': m = 12; break; 112 | } 113 | d = conv2d(date + 4); 114 | hh = conv2d(time); 115 | mm = conv2d(time + 3); 116 | ss = conv2d(time + 6); 117 | } 118 | 119 | uint8_t DateTime::dayOfWeek() const { 120 | uint16_t day = date2days(yOff, m, d); 121 | return (day + 6) % 7; // Jan 1, 2000 is a Saturday, i.e. returns 6 122 | } 123 | 124 | uint32_t DateTime::unixtime(void) const { 125 | uint32_t t; 126 | uint16_t days = date2days(yOff, m, d); 127 | t = time2long(days, hh, mm, ss); 128 | t += SECONDS_FROM_1970_TO_2000; // seconds from 1970 to 2000 129 | 130 | return t; 131 | } 132 | 133 | //////////////////////////////////////////////////////////////////////////////// 134 | // RTC_DS1307 implementation 135 | 136 | static uint8_t bcd2bin (uint8_t val) { return val - 6 * (val >> 4); } 137 | static uint8_t bin2bcd (uint8_t val) { return val + 6 * (val / 10); } 138 | 139 | uint8_t RTC_DS1307::begin(void) { 140 | return 1; 141 | } 142 | 143 | 144 | #if (ARDUINO >= 100) 145 | 146 | uint8_t RTC_DS1307::isrunning(void) { 147 | WIRE.beginTransmission(DS1307_ADDRESS); 148 | WIRE.write(0); 149 | WIRE.endTransmission(); 150 | 151 | WIRE.requestFrom(DS1307_ADDRESS, 1); 152 | uint8_t ss = WIRE.read(); 153 | return !(ss>>7); 154 | } 155 | 156 | void RTC_DS1307::adjust(const DateTime& dt) { 157 | WIRE.beginTransmission(DS1307_ADDRESS); 158 | WIRE.write(0); 159 | WIRE.write(bin2bcd(dt.second())); 160 | WIRE.write(bin2bcd(dt.minute())); 161 | WIRE.write(bin2bcd(dt.hour())); 162 | WIRE.write(bin2bcd(0)); 163 | WIRE.write(bin2bcd(dt.day())); 164 | WIRE.write(bin2bcd(dt.month())); 165 | WIRE.write(bin2bcd(dt.year() - 2000)); 166 | WIRE.write(0); 167 | WIRE.endTransmission(); 168 | } 169 | 170 | DateTime RTC_DS1307::now() { 171 | WIRE.beginTransmission(DS1307_ADDRESS); 172 | WIRE.write(0); 173 | WIRE.endTransmission(); 174 | 175 | WIRE.requestFrom(DS1307_ADDRESS, 7); 176 | uint8_t ss = bcd2bin(WIRE.read() & 0x7F); 177 | uint8_t mm = bcd2bin(WIRE.read()); 178 | uint8_t hh = bcd2bin(WIRE.read()); 179 | WIRE.read(); 180 | uint8_t d = bcd2bin(WIRE.read()); 181 | uint8_t m = bcd2bin(WIRE.read()); 182 | uint16_t y = bcd2bin(WIRE.read()) + 2000; 183 | 184 | return DateTime (y, m, d, hh, mm, ss); 185 | } 186 | 187 | #else 188 | 189 | uint8_t RTC_DS1307::isrunning(void) { 190 | WIRE.beginTransmission(DS1307_ADDRESS); 191 | WIRE.send(0); 192 | WIRE.endTransmission(); 193 | 194 | WIRE.requestFrom(DS1307_ADDRESS, 1); 195 | uint8_t ss = WIRE.receive(); 196 | return !(ss>>7); 197 | } 198 | 199 | void RTC_DS1307::adjust(const DateTime& dt) { 200 | WIRE.beginTransmission(DS1307_ADDRESS); 201 | WIRE.send(0); 202 | WIRE.send(bin2bcd(dt.second())); 203 | WIRE.send(bin2bcd(dt.minute())); 204 | WIRE.send(bin2bcd(dt.hour())); 205 | WIRE.send(bin2bcd(0)); 206 | WIRE.send(bin2bcd(dt.day())); 207 | WIRE.send(bin2bcd(dt.month())); 208 | WIRE.send(bin2bcd(dt.year() - 2000)); 209 | WIRE.send(0); 210 | WIRE.endTransmission(); 211 | } 212 | 213 | DateTime RTC_DS1307::now() { 214 | WIRE.beginTransmission(DS1307_ADDRESS); 215 | WIRE.send(0); 216 | WIRE.endTransmission(); 217 | 218 | WIRE.requestFrom(DS1307_ADDRESS, 7); 219 | uint8_t ss = bcd2bin(WIRE.receive() & 0x7F); 220 | uint8_t mm = bcd2bin(WIRE.receive()); 221 | uint8_t hh = bcd2bin(WIRE.receive()); 222 | WIRE.receive(); 223 | uint8_t d = bcd2bin(WIRE.receive()); 224 | uint8_t m = bcd2bin(WIRE.receive()); 225 | uint16_t y = bcd2bin(WIRE.receive()) + 2000; 226 | 227 | return DateTime (y, m, d, hh, mm, ss); 228 | } 229 | 230 | #endif 231 | 232 | 233 | //////////////////////////////////////////////////////////////////////////////// 234 | // RTC_Millis implementation 235 | 236 | long RTC_Millis::offset = 0; 237 | 238 | void RTC_Millis::adjust(const DateTime& dt) { 239 | offset = dt.unixtime() - millis() / 1000; 240 | } 241 | 242 | DateTime RTC_Millis::now() { 243 | return (uint32_t)(offset + millis() / 1000); 244 | } 245 | 246 | //////////////////////////////////////////////////////////////////////////////// 247 | -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- 1 | ## creative commons 2 | 3 | # Attribution-ShareAlike 3.0 Unported 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. 6 | 7 | *License* 8 | 9 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. 10 | 11 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 12 | 13 | ### 1. Definitions 14 | 15 | a. __"Adaptation"__ means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. 16 | 17 | b. __"Collection"__ means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License. 18 | 19 | c. __"Creative Commons Compatible License"__ means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License. 20 | 21 | d. __"Distribute"__ means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. 22 | 23 | e. __"License Elements"__ means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike. 24 | 25 | f. __"Licensor"__ means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. 26 | 27 | g. __"Original Author""__ means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. 28 | 29 | h. __"Work"__ means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. 30 | 31 | i. __"You"__ means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. 32 | 33 | j. __"Publicly Perform"__ means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. 34 | 35 | k. __"Reproduce"__ means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. 36 | 37 | ### 2. Fair Dealing Rights 38 | 39 | Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. 40 | 41 | ### 3. License Grant 42 | 43 | Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: 44 | 45 | a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; 46 | 47 | b. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; 48 | 49 | c. to Distribute and Publicly Perform the Work including as incorporated in Collections; and, 50 | 51 | d. to Distribute and Publicly Perform Adaptations. 52 | 53 | d. For the avoidance of doubt: 54 | 55 | 1. __Non-waivable Compulsory License Schemes.__ In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; 56 | 57 | 2. __Waivable Compulsory License Schemes.__ In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, 58 | 59 | 3. __Voluntary License Schemes.__ The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. 60 | 61 | The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. 62 | 63 | ### 4. Restrictions 64 | 65 | The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: 66 | 67 | a. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested. 68 | 69 | b. You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. 70 | 71 | c. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. 72 | 73 | d. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. 74 | 75 | ### 5. Representations, Warranties and Disclaimer 76 | 77 | UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 78 | 79 | ### 6. Limitation on Liability 80 | 81 | EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 82 | 83 | ### 7. Termination 84 | 85 | a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. 86 | 87 | b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. 88 | 89 | ### 8. Miscellaneous 90 | 91 | a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. 92 | 93 | b. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. 94 | 95 | c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. 96 | No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. 97 | 98 | d. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. 99 | 100 | e. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. 101 | 102 | ``` 103 | Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. 104 | 105 | Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License. 106 | 107 | Creative Commons may be contacted at https://creativecommons.org/. 108 | ``` 109 | -------------------------------------------------------------------------------- /Graphics/Dutch 20x20mm.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 24 | 49 | 53 | 57 | 61 | 65 | 69 | 73 | 77 | 81 | 85 | 89 | 93 | 97 | 101 | 105 | 109 | 113 | 114 | 116 | 117 | 119 | image/svg+xml 120 | 122 | 123 | 124 | 125 | 126 | 133 | 143 | 153 | 163 | 173 | 183 | 193 | 203 | 213 | 223 | 233 | 243 | 253 | 263 | 273 | 283 | 293 | 303 | 313 | 323 | 333 | 343 | 353 | 363 | 373 | 383 | 393 | 403 | 413 | 423 | 433 | 443 | 453 | 463 | 473 | 483 | 493 | 503 | 513 | 523 | 533 | 543 | 553 | 563 | 573 | 583 | 593 | 603 | 613 | 623 | 633 | 643 | 653 | 663 | 673 | 683 | 693 | 703 | 713 | 723 | 733 | 743 | 753 | 763 | 773 | 774 | 780 | 787 | 788 | 793 | KTVIEJFNWARTVOOROVERHALFVIJF*EENTWEEAALFZNESVGENTDRVIENRACHTQUUR 840 | 841 | 842 | -------------------------------------------------------------------------------- /Graphics/Dutch2 20x20mm.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 24 | 49 | 53 | 57 | 61 | 65 | 69 | 73 | 77 | 81 | 85 | 89 | 93 | 97 | 101 | 105 | 109 | 113 | 114 | 116 | 117 | 119 | image/svg+xml 120 | 122 | 123 | 124 | 125 | 126 | 133 | 143 | 153 | 163 | 173 | 183 | 193 | 203 | 213 | 223 | 233 | 243 | 253 | 263 | 273 | 283 | 293 | 303 | 313 | 323 | 333 | 343 | 353 | 363 | 373 | 383 | 393 | 403 | 413 | 423 | 433 | 443 | 453 | 463 | 473 | 483 | 493 | 503 | 513 | 523 | 533 | 543 | 553 | 563 | 573 | 583 | 593 | 603 | 613 | 623 | 633 | 643 | 653 | 663 | 673 | 683 | 693 | 703 | 713 | 723 | 733 | 743 | 753 | 763 | 773 | 774 | 780 | 787 | 788 | 793 | VIJFTIENHTWINTIGALF*VOORNATWAALFTWEENELFDRVIJERFZNESVGENACHTTIEN 843 | 844 | 845 | --------------------------------------------------------------------------------