Subversion Repositories Projects

Compare Revisions

Regard whitespace Rev 345 → Rev 346

/C-OSD/trunk/max7456_software_spi.c
18,6 → 18,9
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
****************************************************************************/
 
#include <avr/io.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
#include "max7456_software_spi.h"
 
/* ##########################################################################
136,6 → 139,14
}
 
/**
* write an ascii <string> from progmen at <x>/<y> to MAX7456 display memory
*/
void write_ascii_string_pgm(uint8_t x, uint8_t y, char *string) {
while (pgm_read_byte(string) != 0x00)
write_ascii_char(((x++)+(y * 30)), pgm_read_byte(string++));
}
 
/**
* Write only the last three digits of a <number> at <x>/<y> to MAX7456
* display memory. takes full 16bit numbers as well for stuff
* like compass only taking three characters (values <= 999)