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
/*********************************************************************** | |
Mini Clock v1.0, Jul 2014 by Nick Hall | |
Distributed under the terms of the GPL. | |
For help on how to build the clock see my blog: | |
http://123led.wordpress.com/ | |
Tested on IDE v1.6.6 | |
----- |
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 <Wire.h> | |
#include "TM1637.h" // http://www.seeedstudio.com/wiki/File:DigitalTube.zip | |
// 7сигментный индикатор | |
#define CLK 6 | |
#define DIO 7 | |
#define brightness 6 // яркость, от 0 до 7 | |
// кнопки | |
#define keyHor 5 |