-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.h
95 lines (69 loc) · 1.87 KB
/
Constants.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Constants.h
#ifndef _CONSTANTSCLASS_h
#define _CONSTANTSCLASS_h
#define DEBUG Serial.println
// Se o define abaixo não estiver comentado
// a classe de arquivos irá deletar todos os dados
#define APAGARDADOS
#define IPADDRESS IPAddress(10,1,1,14)
#define SUBNETMASK IPAddress(255,255,255,0)
#define DNSSERVER IPAddress(10,1,1,254)
#define GATEWAY IPAddress(10,1,1,254)
#define DIRECTCONNECTION true
#define SEM_APITO_POR_HOJE
#define BUZZER_PIN 30
#define DELAY_PAUSA 800
#define DELAY_APITO 50
/* SPI BUS */
#define SCK 52
#define MISO 50
#define MOSI 51
/* I2C BUS */
#define RFID_ADDRESS 0x24
#define RTC_ADDRESS 0x68
#define LCD_ADDRESS 0x27
/* LCD */
#define BACKLIGHT_PIN 3
/* NFC MODULE */
#define NFC_IRQ (2)
#define NFC_RESET (3)
/* Comunicacao */
#define FIM_STRING '\0'
#define SEPARADOR ';'
/* Ethernet Shield. */
#define SERVER_PORTA 55535
#define SERVER_WEBPORTA 80
#define FIX_OUTPUT 53
/* Pacotes. */
#define BUFFER_SIZE 256
#define PACOTE_NULO 0x00
// Colaborador
#define CADASTRAR_COLABORADOR 0x01
#define CONSULTAR_COLABORADOR 0x02
#define ALTERAR_COLABORADOR 0x03
#define EXCLUIR_COLABORADOR 0x04
#define LISTAR_COLABORADORES 0x05
#define DEFINIR_CARTAO_COLABO 0x06
#define LISTAR_CARTOES 0x07
#define CARTAO_CONSULTADO 0x08
#define CARTAO_DEFINIDO 0x09
#define LISTAR_PONTOS 0x10
#define PONTO_LISTADO 0x11
#define COLABORADOR_CONSULTADO 0xF0
#define COLABORADOR_CADASTRADO 0xEF
#define COLABORADOR_LISTADO 0xEE
// Empregador
#define CADASTRAR_EMPREGADOR 0x15
#define CONSULTAR_EMPREGADOR 0x16
#define ALTERAR_EMPREGADOR 0x17
#define EMPREGADOR_CONSULTADO 0x18
#define EMPREGADOR_CADASTRADO 0x19
// Relógio
#define ALTERAR_RELOGIO 0xA8
// Ponto
#define CON_PONTO_COLABORADOR 0xA1
// Historico
#define HIST_RELOGIO 0x22
#define HIST_EMPREGADOR 0x23
#define HIST_COLABORADOR 0x24
#endif