-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
53 lines (41 loc) · 1.23 KB
/
main.h
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
/*
* File: main.h
* Author: shummu
*
* Created on 24 September, 2023, 7:28 PM
*/
#ifndef MAIN_H
#define MAIN_H
#include <xc.h>
#include "clcd.h"
#include "matrix_keypad.h"
#include "timers.h"
#define POWER_ON_SCREEN 0X01
#define MENU_DISPLAY_SCREEN 0X02
#define MICRO_MODE 0X03
#define GRILL_MODE 0X04
#define CONVECTION_MODE 0X05
#define START_MODE 0X06
#define TIME_DISPLAY 0X07
#define START 0X08
#define PAUSE 0X09
#define STOP 0X10
#define RESET_NOTHIMG 0X0F
#define MODE_RESET 0x10
#define RESET_TEMP 0x11
//#define GRILL_MODE_RESET
#define FAN RC2
#define FAN_DDR TRISC2
#define BUZZER RC1
#define BUZZER_DDR TRISC1
#define DOOR RB3
#define DOOR_DDR TRISB3
#define ON 1
#define OFF 0
void power_on_screen(void);
void menu_display_screen(void);
void clear_screen(void);
void set_time(unsigned char key,int reset_flag);
void time_display_screen(void);
void set_temp(unsigned char key,int reset_flag);
#endif /* MAIN_H */