Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Ping SDFileSystem mbed-src
Diff: main.h
- Revision:
- 2:9a51bb2694aa
- Parent:
- 1:7070fb876a2c
- Child:
- 3:410a2812b0dc
diff -r 7070fb876a2c -r 9a51bb2694aa main.h
--- a/main.h Thu Dec 31 06:10:30 2015 +0000
+++ b/main.h Thu Dec 31 06:40:03 2015 +0000
@@ -28,8 +28,8 @@
static PinName const RX_PIN = dp11;
Serial pc(TX_PIN, RX_PIN);
-static PinName const FRONT = D11;
-static PinName const REAR = D12;
+static PinName const FRONT = dp19;
+static PinName const REAR = dp20;
Ping rear(REAR);
Ping front(FRONT);
@@ -58,7 +58,7 @@
static PinName const COLOR20 = dp23;
static PinName const COLOR21 = dp22;
static PinName const COLOR22 = dp21;
-AnalogIn ColorSensor[SENSOR_NUM][3] = {{COLOR00, COLOR01, COLOR02}, {COLOR10, COLOR11, COLOR12}, {COLOR20, COLOR21, COLOR22}};
+AnalogIn ColorSensor[SENSOR_X_COLOR] = {COLOR00, COLOR01, COLOR02, COLOR10, COLOR11, COLOR12, COLOR20, COLOR21, COLOR22};
static PinName const MOSI = dp15;
static PinName const MISO = dp16;