-
Notifications
You must be signed in to change notification settings - Fork 0
/
Display.c
55 lines (53 loc) · 1.24 KB
/
Display.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#include "Display.h"
/*** Funciones ***/
void imprimir(uint8 numero){
switch(numero){
case 0:
Display7seg_Write(cero);
break;
case 1:
Display7seg_Write(uno);
break;
case 2:
Display7seg_Write(dos);
break;
case 3:
Display7seg_Write(tres);
break;
case 4:
Display7seg_Write(cuatro);
break;
case 5:
Display7seg_Write(cinco);
break;
case 6:
Display7seg_Write(seis);
break;
case 7:
Display7seg_Write(siete);
break;
case 8:
Display7seg_Write(ocho);
break;
case 9:
Display7seg_Write(nueve);
break;
case 10:
Display7seg_Write(efe);
break;
default:
Display7seg_Write(off);
}
}
/* [] END OF FILE */