218
void main(void)
{
unsigned char i = 0;
unsigned char j = 0;
unsigned char temp[8];
const unsigned char text[80] =
{
0x00, 0x7E, 0x04, 0x08, 0x08, 0x04, 0x7E, 0x00, //M
0x00, 0x42, 0x42, 0x7E, 0x7E, 0x42, 0x42, 0x00, //I
0x00, 0x3C, 0x42, 0x42, 0x42, 0x42, 0x24, 0x00, //C
0x00, 0x7E, 0x1A, 0x1A, 0x1A, 0x2A, 0x44, 0x00, //R
0x00, 0x3C, 0x42, 0x42, 0x42, 0x42, 0x3C, 0x00, //O
0x00, 0x7C, 0x12, 0x12, 0x12, 0x12, 0x7C, 0x00, //A
0x00, 0x7E, 0x1A, 0x1A, 0x1A, 0x2A, 0x44, 0x00, //R
0x00, 0x7E, 0x7E, 0x4A, 0x4A, 0x4A, 0x42, 0x00, //E
0x00, 0x7E, 0x04, 0x08, 0x10, 0x20, 0x7E, 0x00, //N
0x00, 0x7C, 0x12, 0x12, 0x12, 0x12, 0x7C, 0x00 //A
};
const unsigned char symbols[56] =
{
0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA,
0x3C, 0x42, 0x95, 0xA1, 0xA1, 0x95, 0x42, 0x3C,
0xFF, 0xC3, 0xBD, 0xA5, 0xA5, 0xBD, 0xC3, 0xFF,
0x99, 0x5A, 0x3C, 0xFF, 0xFF, 0x3C, 0x5A, 0x99,
0x1C, 0x22, 0x41, 0x86, 0x86, 0x41, 0x22, 0x1C,
0xDF, 0xDF, 0xD8, 0xFF, 0xFF, 0x1B, 0xFB, 0xFB,
0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
};
memset(temp, 0x00, sizeof(temp));
/* Stop watchdog timer from timing out during initial start-up. */
WDTCTL = WDTPW | WDTHOLD;
/* initialize Config for the MSP430 GPIO */
GPIO_graceInit();
/* initialize Config for the MSP430 2xx family clock systems (BCS) */
BCSplus_graceInit();
/* initialize Config for the MSP430 USI */
USI_graceInit();
/* initialize Config for the MSP430 System Registers */
System_graceInit();
/* initialize Config for the MSP430 WDT+ */
WDTplus_graceInit();
MAX72xx_init();
while(1)
{
for(i = 0; i < 80; i++)