Subversion Repositories Projects

Rev

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

Rev 902 Rev 932
Line 23... Line 23...
23
#include <util/delay.h>
23
#include <util/delay.h>
24
#include <avr/pgmspace.h> 
24
#include <avr/pgmspace.h> 
25
#include <string.h>
25
#include <string.h>
26
#include <stdlib.h>
26
#include <stdlib.h>
27
#include "max7456_software_spi.h"
27
#include "max7456_software_spi.h"
-
 
28
#include "usart0.h"
28
 
29
 
29
 
30
 
30
char conv_array[7]; // general array for number -> char conversation
31
char conv_array[7]; // general array for number -> char conversation
31
 
32
 
32
int pow(int a, int b) {
33
int pow(int a, int b) {
Line 68... Line 69...
68
    spi_send(address);
69
    spi_send(address);
69
    spi_send(byte);
70
    spi_send(byte);
70
 
71
 
71
    // end sending
72
    // end sending
72
    MAX_CS_HIGH
73
    MAX_CS_HIGH
-
 
74
 
-
 
75
#ifdef SERIALDEBUGDRAW
-
 
76
    uint8_t c = address + byte;
-
 
77
    usart0_puts("#3");
-
 
78
    usart0_putc(address);
-
 
79
    usart0_putc(byte);
-
 
80
    usart0_putc(c);
-
 
81
    usart0_puts("\n");
-
 
82
#endif
73
}
83
}
74
 
84
 
75
/**
85
/**
76
 *  write a <character> to <address> of MAX7456 display memory
86
 *  write a <character> to <address> of MAX7456 display memory
77
 */
87
 */