show date on 7-segments display

This commit is contained in:
King Kévin 2017-03-08 11:18:58 +01:00
parent 8e4b84f803
commit bb1b82751f
1 changed files with 3 additions and 0 deletions

3
main.c
View File

@ -249,6 +249,9 @@ void main(void)
led_max7219_test(false); // go back in normal operation
led_max7219_off(); // switch display off
printf("OK\n");
led_max7219_number(20000000+rtc_ds1307_time[6]*10000+rtc_ds1307_time[5]*100+rtc_ds1307_time[4]+2, 0x14); // display date on 7-segments display
led_max7219_on(); // switch display on
// main loop
printf("command input: ready\n");