Rev 431 | Rev 519 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 431 | Rev 489 | ||
---|---|---|---|
Line 145... | Line 145... | ||
145 | } |
145 | } |
Line 146... | Line 146... | ||
146 | 146 | ||
147 | /** |
147 | /** |
148 | * write an ascii <string> from progmen at <x>/<y> to MAX7456 display memory |
148 | * write an ascii <string> from progmen at <x>/<y> to MAX7456 display memory |
149 | */ |
149 | */ |
150 | void write_ascii_string_pgm(uint8_t x, uint8_t y, char *string) { |
150 | void write_ascii_string_pgm(uint8_t x, uint8_t y, const char *string) { |
151 | while (pgm_read_byte(string) != 0x00) |
151 | while (pgm_read_byte(string) != 0x00) |
152 | write_ascii_char(((x++)+(y * 30)), pgm_read_byte(string++)); |
152 | write_ascii_char(((x++)+(y * 30)), pgm_read_byte(string++)); |
Line 153... | Line 153... | ||
153 | } |
153 | } |
154 | 154 | ||
155 | /** |
155 | /** |
156 | * write an <string> from progmen at <x>/<y> downwards to MAX7456 display memory |
156 | * write an <string> from progmen at <x>/<y> downwards to MAX7456 display memory |
157 | */ |
157 | */ |
158 | void write_string_pgm_down(uint8_t x, uint8_t y, char *string, uint8_t length) { |
158 | void write_string_pgm_down(uint8_t x, uint8_t y, const char *string, uint8_t length) { |
159 | while (length--) |
159 | while (length--) |
Line 160... | Line 160... | ||
160 | write_char((x+(y++ * 30)), pgm_read_byte(string++)); |
160 | write_char((x+(y++ * 30)), pgm_read_byte(string++)); |