Subversion Repositories Projects

Rev

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

Rev 331 Rev 346
Line 16... Line 16...
16
 *   along with this program; if not, write to the                          *
16
 *   along with this program; if not, write to the                          *
17
 *   Free Software Foundation, Inc.,                                        *
17
 *   Free Software Foundation, Inc.,                                        *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
19
 ****************************************************************************/
19
 ****************************************************************************/
Line -... Line 20...
-
 
20
 
-
 
21
#include <avr/io.h>
-
 
22
#include <util/delay.h>
20
 
23
#include <avr/pgmspace.h> 
Line 21... Line 24...
21
#include "max7456_software_spi.h"
24
#include "max7456_software_spi.h"
22
 
25
 
23
/* ##########################################################################
26
/* ##########################################################################
Line 134... Line 137...
134
        string++;
137
        string++;
135
    }
138
    }
136
}
139
}
Line 137... Line 140...
137
 
140
 
-
 
141
/**
-
 
142
 *  write an ascii <string> from progmen at <x>/<y> to MAX7456 display memory
-
 
143
 */
-
 
144
void write_ascii_string_pgm(uint8_t x, uint8_t y, char *string) {
-
 
145
        while (pgm_read_byte(string) != 0x00)
-
 
146
                write_ascii_char(((x++)+(y * 30)), pgm_read_byte(string++));
-
 
147
}
-
 
148
 
138
/**
149
/**
139
 *  Write only the last three digits of a <number> at <x>/<y> to MAX7456
150
 *  Write only the last three digits of a <number> at <x>/<y> to MAX7456
140
 *  display memory. takes full 16bit numbers as well for stuff
151
 *  display memory. takes full 16bit numbers as well for stuff
141
 *  like compass only taking three characters (values <= 999)
152
 *  like compass only taking three characters (values <= 999)
142
 */
153
 */