aboutsummaryrefslogtreecommitdiffstats
path: root/Lab3.X/display.h
blob: fa2dfa16d72292963ae9de32f53870f5cc541cdf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef DISPLAY_H
#define	DISPLAY_H

#include <xc.h> // include processor files - each processor file is guarded.  

#ifdef	__cplusplus
extern "C" {
#endif /* __cplusplus */

  // Insert declarations
enum DIGIT {
    MSB = (0b1 << 11),
    LSB = (0b1 << 10)
};
void init7seg(void);
void showChar7seg(char myChar, enum DIGIT myDigit);
void delay(long num);

#ifdef	__cplusplus
}
#endif
#endif