File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed
Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 5050#include < LiquidCrystal_I2C.h> // Biblioteca utilizada para fazer a comunicação com o display 20x4
5151#include " frame.h" // Implementação da classe SerialProtocol
5252
53- #define PING 100
54- #define TIME 200
55- #define LECTURE_NAME 300
56- #define SPEAKER 400
57- #define ATTENDEE 500
58- #define SUCCESS 600
59- #define FAIL 601
60- #define SETTIME 700
61- #define GETTIME 701
53+ /* *
54+ * @name Códigos de Mensagens do Protocolo.
55+ * @brief Constantes usadas na comunicação serial com a TV-Box.
56+ *
57+ * Cada constante representa um tipo de mensagem disparada pelo master (TV-Box).
58+ * @{
59+ */
60+ #define PING 100 /* *< Obtém o timestamp do uptime e a versão do firmware. */
61+ #define TIME 200 /* *< Linha 0: sala, data e hora. */
62+ #define LECTURE_NAME 300 /* *< Linha 1: nome da palestra. */
63+ #define SPEAKER 400 /* *< Linha 2: nome do professor responsável pela aula em curso. */
64+ #define ATTENDEE 500 /* *< Linha 3: estudante que aponta sua presença. */
65+ #define SUCCESS 600 /* *< Beep de sucesso no registro, seja por leitor biométrico de digital ou por senha no teclado numérico. */
66+ #define FAIL 601 /* *< Beep de falha no registro, seja por leitor biométrico de digital ou por senha no teclado numérico. . */
67+ #define SETTIME 700 /* *< Comando para ajustar data/hora do RTC ligado ao Arduino. */
68+ #define GETTIME 701 /* *< Comando para solicitar data/hora do RTC ligado ao Arduino. */
69+ /* * @} */
6270
6371#define BUZZER 2 // Pino digital ligado ao buzzer
6472
You can’t perform that action at this time.
0 commit comments