Subversion Repositories Projects

Rev

Rev 346 | Rev 379 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 346 Rev 349
Line 82... Line 82...
82
 *  write an ascii <string> from progmen at <x>/<y> to MAX7456 display memory
82
 *  write an ascii <string> from progmen at <x>/<y> to MAX7456 display memory
83
 */
83
 */
84
void write_ascii_string_pgm(uint8_t, uint8_t, char*);
84
void write_ascii_string_pgm(uint8_t, uint8_t, char*);
85
 
85
 
86
/**
86
/**
87
 *  Write only the last three digits of a <number> at <x>/<y> to MAX7456
87
 * Write only some digits of a unsigned <number> at <x>/<y> to MAX7456 display memory
88
 *  display memory. takes full 16bit numbers as well for stuff
88
 * <num> represents the largest multiple of 10 that will still be displayable as
89
 *  like compass only taking three characters (values <= 999)
89
 * the first digit, so num = 10 will be 0-99 and so on
-
 
90
 * <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 007 instead of   7
90
 */
91
 */
91
void write_3digit_number_u(uint8_t, uint8_t, uint16_t);
92
void write_ndigit_number_u(uint8_t, uint8_t, uint16_t, int16_t, uint8_t);
92
 
93
 
93
/**
94
/**
94
 *  Write only the last two digits of a number at <x>/<y> to MAX7456
95
 * Write only some digits of a signed <number> at <x>/<y> to MAX7456 display memory
95
 *  display memory. takes full 16bit numbers as well for stuff
96
 * <num> represents the largest multiple of 10 that will still be displayable as
96
 *  like seconds only taking two characters (values <= 99)
97
 * the first digit, so num = 10 will be 0-99 and so on
97
 *  Since this is used for seconds only and it looks better, there
98
 * <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 007 instead of   7
98
 *  is a trading 0 attached
-
 
99
 */
99
 */
100
void write_2digit_number_u(uint8_t, uint8_t, uint16_t);
100
void write_ndigit_number_s(uint8_t, uint8_t, int16_t, int16_t, uint8_t);
101
/**
-
 
102
 *  write a unsigned number as /10th at <x>/<y> to MAX7456 display memory
-
 
103
 */
-
 
104
void write_number_u_10th(uint8_t, uint8_t, uint16_t);
-
 
105
 
101
 
106
/**
102
/**
107
 *  write a unsigned number at <x>/<y> to MAX7456 display memory
103
 * Write only some digits of a unsigned <number> at <x>/<y> to MAX7456 display memory
-
 
104
 * as /10th of the value
-
 
105
 * <num> represents the largest multiple of 10 that will still be displayable as
-
 
106
 * the first digit, so num = 10 will be 0-99 and so on
-
 
107
 * <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 00.7 instead of   .7
108
 */
108
 */
109
void write_number_u(uint8_t, uint8_t, uint16_t);
109
void write_ndigit_number_u_10th(uint8_t, uint8_t, uint16_t, int16_t, uint8_t);
110
 
110
 
111
/**
111
/**
112
 *  write a signed number at <x>/<y> to MAX7456 display memory
112
 * Write only some digits of a signed <number> at <x>/<y> to MAX7456 display memory
-
 
113
 * as /10th of the value
-
 
114
 * <num> represents the largest multiple of 10 that will still be displayable as
-
 
115
 * the first digit, so num = 10 will be 0-99 and so on
-
 
116
 * <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 00.7 instead of   .7
113
 */
117
 */
114
void write_number_s(uint8_t, uint8_t, int16_t);
118
void write_ndigit_number_s_10th(uint8_t, uint8_t, int16_t, int16_t, uint8_t);
115
 
119
 
116
/**
120
/**
117
 *  write <seconds> as human readable time at <x>/<y> to MAX7456 display mem
121
 *  write <seconds> as human readable time at <x>/<y> to MAX7456 display mem
118
 */
122
 */
119
void write_time(uint8_t, uint8_t, uint16_t);
123
void write_time(uint8_t, uint8_t, uint16_t);