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.
Diff: pins.h
- Revision:
- 0:7a97ebb833eb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pins.h Sun May 05 00:02:11 2019 +0000 @@ -0,0 +1,39 @@ +#pragma once + +// LEDs +#define LED_BACK PA_15 + +// Serial I/O +#define TX PA_9 +#define RX PA_10 + +// Motors (R/L = right/left, F/B = forward/backwards) +#define MOTOR_RF PB_6 +#define MOTOR_RB PB_7 +#define MOTOR_LF PB_8 +#define MOTOR_LB PB_9 + +// Encoders (left/right, A/B channels) +#define ENC_LF PB_3 +#define ENC_LB PC_10 +#define ENC_RF PB_5 +#define ENC_RB PB_4 + +// IR emitters +#define IR_Rfront PA_1 +#define IR_Lfront PB_0 +#define IR_Rside PA_7 +#define IR_Lside PC_4 + +// IR detectors +#define DET_Rfront PA_0 +#define DET_Lfront PB_1 +#define DET_Rside PA_6 +#define DET_Lside PC_5 + +// Gyro +//#define GYRO 0 +//#define VREF 0 + +// Buzzer +#define BUZZER PB_14