Horloge_Lepot_2016_2017/horloge/main-DESKTOP-M2KTSKL.cpp

45 lines
680 B
C++
Raw Normal View History

2017-12-12 10:47:31 +01:00
/*
* horloge.cpp
*
* Created: 17-10-17 20:53:10
* Author : Adrien
*/
#define F_CPU 16000000UL
#include <avr/io.h>
#include <util/delay.h>
#include "util.h"
#include "max7219.h"
#define __plus__ 1
#define __moins__ 2
#define __start__ 3
#define __conf__ 4
#define __MAX_DIN__ 5
#define __MAX_LOAD__ 6
#define __MAX_CLK__ 7
int main(void)
{
/* Replace with your application code */
max7219 max(__MAX_DIN__, __MAX_LOAD__, __MAX_LOAD__, 4);
max.sendRAWdata(1,max7219::D1);
uint8_t heures = 0, minutes = 0, secondes = 0;
while (1)
{
max.sendRAWdata(1,max7219::D1);
max.sendRAWdata(1,max7219::D2);
max.setIntensity(50);
}
}
isr(__INT__)
{
}