/C-OSD/trunk/max7456_software_spi.c |
---|
147,6 → 147,14 |
} |
/** |
* write an <string> from progmen at <x>/<y> downwards to MAX7456 display memory |
*/ |
void write_string_pgm_down(uint8_t x, uint8_t y, char *string, uint8_t length) { |
while (length--) |
write_char((x+(y++ * 30)), pgm_read_byte(string++)); |
} |
/** |
* Write only some digits of a unsigned <number> at <x>/<y> to MAX7456 display memory |
* <num> represents the largest multiple of 10 that will still be displayable as |
* the first digit, so num = 10 will be 0-99 and so on |