ジャパンオープン用のLPC824専用プログラム

Dependencies:   mbed-src Ping SDFileSystem

Revision:
1:ea7307724f1c
Parent:
0:6c79a352010b
--- a/main/main.h	Sat Feb 27 06:35:13 2016 +0000
+++ b/main/main.h	Sun Feb 28 06:38:03 2016 +0000
@@ -5,34 +5,6 @@
 
 //PinConfig
 
-//SDカード管理用(20pin)
-#ifdef SD_CARD
-
-static PinName const monitor_tx = P0_4;
-static PinName const monitor_rx = P0_0;
-
-static PinName const write_RXD = P0_0;
-static PinName const write_TXD = P0_4;
-static PinName const write_RESET = P0_5;
-static PinName const write_ISP = P0_12;
-
-static PinName const SPI_MOSI = P0_23;
-static PinName const SPI_MISO = P0_17;
-static PinName const SPI_SCLK = P0_13;
-static PinName const SPI_CS = P0_0;
-
-static PinName const SD_MISO = P0_1;
-static PinName const SD_MOSI = P0_10;
-static PinName const SD_SCK = P0_15;
-static PinName const SD_CS = P0_11;
-static PinName const SD_SW = P0_14;
-
-Serial pc(monitor_tx, monitor_rx);
-SPISlave nucleo(SPI_MOSI, SPI_MISO, SPI_SCLK, SPI_CS);
-SDFileSystem sd(SD_MOSI, SD_MISO, SD_SCK, SD_CS, "sd");
-DigitalIn SdSwitch(SD_SW);
-#endif /*SD_CARD*/
-
 //超音波用(20pin)
 #ifdef ULTRA_SONIC
 
@@ -61,7 +33,6 @@
 Ping rear(Sonic1_echo);
 Ping front(Sonic2_echo);
 DigitalOut led[2]={led_umr1, led_umr2};
-
 #endif /*ULTRA_SONIC*/
 
 
@@ -93,36 +64,8 @@
 Ping rear(Sonic1_trg);
 Ping front(Sonic2_trg);
 DigitalOut led[2]={Sonic4_trg, Sonic3_trg};
-
 #endif /*ULTRA_SONI_2*/
 
-//カラーセンサ用(33pin?)
-#ifdef COLOR_SENSOR
-static PinName const TX_PIN = dp10;
-static PinName const RX_PIN = dp11;
-Serial pc(TX_PIN, RX_PIN);
-
-
-static PinName const COLOR00 = dp23;
-static PinName const COLOR01 = dp22;
-static PinName const COLOR02 = dp21;
-
-static PinName const COLOR10 = dp23;
-static PinName const COLOR11 = dp22;
-static PinName const COLOR12 = dp21;
-
-static PinName const COLOR20 = dp23;
-static PinName const COLOR21 = dp22;
-static PinName const COLOR22 = dp21;
-AnalogIn ColorSensor[SENSOR_X_COLOR] = {COLOR00, COLOR01, COLOR02, COLOR10, COLOR11, COLOR12, COLOR20, COLOR21, COLOR22};
-
-static PinName const MOSI = dp15;
-static PinName const MISO = dp16;
-static PinName const SCLK = dp17;
-static PinName const SSEL = dp18;
-SPISlave nucleo(MOSI, MISO, SCLK, SSEL);
-#endif /*COLOR_SENSOR*/
-
 //IRセンサー用(33pin)
 #ifdef IR_SENSOR
 static PinName const monitor_tx = P0_4;