Project

General

Profile

Revision 6d70682c

ID6d70682cdefdadb756586af26674f343126c9bed
Parent 6c30c8f9
Child d07266e1

Added by RicardoSilva91 almost 7 years ago

setdisplay tested, working

View differences:

tpf/display.h
8 8
#include "tempo.h"
9 9

  
10 10

  
11
#ifdef LCD_NOT_SEG
12 11

  
13 12
/**
14 13
*	\brief Displays the values received, in this case, the time,power and if needed a message 
15 14
*	
16 15
*	\param send a time as a pse_time_t, a uint8_t power and a message. If there is no need for a message, send a null char[]. The fuction returns 0 if success or !=0 if something failed
17 16
*/
18
uint8_t setDisplayLCD(pse_time_t clock, uint16_t power, char* message);
17
uint8_t setDisplay(pse_time_t clock, uint16_t power, char* message);
19 18

  
20 19
/**
21 20
*	\brief Limpa o display
22 21
*
23 22
 *      \param returns 0 if sucess and !=0 if something failed
24 23
*/
25
uint8_t clearDisplayLCD();
24
uint8_t clearDisplay();
26 25

  
27
#endif
28 26

  
29
#endif /* DISPLAY_H_ */ 
27
/**
28
 * @brief method used by tempo module to set time to show on LCD
29
 * @param clock time(hh:mm:ss) to set
30
 * @return  0 if sucess
31
 *          !0 if fail
32
 */
33
uint8_t setDisplayTime(pse_time_t clock);
34

  
35
/**
36
 * @brief method used by power module to set power(Watts) to show on LCD
37
 * @param power power to show (150, 350, 500, 750)
38
 * @return  0 if sucess
39
 *          !0 if fail
40
 */
41
uint8_t setDisplayPower(uint16_t power);
42

  
43

  
44
/**
45
 * @brief print values on the LCD display
46
 * @return  0 if sucess
47
 *          !0 if fail
48
 */
49
uint8_t showDisplay();
50

  
51
/**
52
 * method used on main module to initiate display activity
53
 * @return  0 if sucess
54
 *          !0 if fail
55
 */
56
uint8_t initDisplay();
57
        
58
        
59
#endif /* DISPLAY_H_ */ 

Also available in: Unified diff