Rev 349 | Rev 402 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 349 | Rev 379 | ||
---|---|---|---|
Line 145... | Line 145... | ||
145 | while (pgm_read_byte(string) != 0x00) |
145 | while (pgm_read_byte(string) != 0x00) |
146 | write_ascii_char(((x++)+(y * 30)), pgm_read_byte(string++)); |
146 | write_ascii_char(((x++)+(y * 30)), pgm_read_byte(string++)); |
147 | } |
147 | } |
Line 148... | Line 148... | ||
148 | 148 | ||
- | 149 | /** |
|
- | 150 | * write an <string> from progmen at <x>/<y> downwards to MAX7456 display memory |
|
- | 151 | */ |
|
- | 152 | void write_string_pgm_down(uint8_t x, uint8_t y, char *string, uint8_t length) { |
|
- | 153 | while (length--) |
|
- | 154 | write_char((x+(y++ * 30)), pgm_read_byte(string++)); |
|
- | 155 | } |
|
- | 156 | ||
149 | /** |
157 | /** |
150 | * Write only some digits of a unsigned <number> at <x>/<y> to MAX7456 display memory |
158 | * Write only some digits of a unsigned <number> at <x>/<y> to MAX7456 display memory |
151 | * <num> represents the largest multiple of 10 that will still be displayable as |
159 | * <num> represents the largest multiple of 10 that will still be displayable as |
152 | * the first digit, so num = 10 will be 0-99 and so on |
160 | * the first digit, so num = 10 will be 0-99 and so on |
153 | * <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 007 instead of 7 |
161 | * <pad> = 1 will cause blank spaced to be filled up with zeros e.g. 007 instead of 7 |