VMA425
V. 01 – 13/04/2018
3
©Velleman nv
5.
Overview
VMA425
With this 4-digit, seven-segment display module, you can easily add a 4-number LED readout to your
projects. Useful for making a clock, timer, temperature readout, etc.
operating voltage: 3.3-5 V
LED colour: red
driver chipset: TM1637
6.
Example
Connection.
Vcc======5V
Gnd======Gnd
CLK======pin 2
DIO======pin 3
*** CODE BEGIN CLOCKDISPLAY ***
// Author:Frankie.Chu
// Date:9 April,2012
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
// Modified record:
//
/*******************************************************************************/
#include <TimerOne.h>
#include "TM1637.h"
#define ON 1
#define OFF 0
int8_t TimeDisp[] = {0x00,0x00,0x00,0x00};
unsigned char ClockPoint = 1;
unsigned char Update;
unsigned char halfsecond = 0;
unsigned char second;
unsigned char minute = 0;
unsigned char hour = 12;