Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 254 → Rev 255

/PIC Stuff/Cerebot_32MX7_LED_Cube/main.c
40,6 → 40,7
#include "SPI1.h"
#include "SPI4.h"
#include "I2C1.h"
#include "ETHERNET.h"
#include "TIMER4.h"
#include "TIMER5.h"
#include "CUBE.h"
142,6 → 143,10
LED3_LAT = 0;
LED4_LAT = 0;
 
// Initialize the Ethernet module
ETH_DATA eth_data;
ETH_Init(&eth_data, NULL, &Cube_Ethernet_Frame_In);
 
// Initialize the SPI1 module
SPI1_DATA spi_1_data;
SPI1_Init(&spi_1_data, NULL);
212,6 → 217,9
Tron_Init(&tron_data);
Tron_Main();
break;
case BOARD_MODE_ETHERNET:
while(1);
break;
case BOARD_MODE_IDLE:
default:
Idle_Animation_Sequence();
245,7 → 253,7
// UART1_Write(start_text, 18);
 
// Set the overlay text
uint8_t text_string[] = "Welcome to the AMP Lab ";
uint8_t text_string[] = "Welcome to the CCM Lab ";
Cube_Text_Init(text_string, 27, 0xFF, 0xFF, 0xFF);
 
// Loop through some preset animations