SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.

Dependencies:   TSI USBDevice mbed-dev

Fork of SmartWheels by haofan Zheng

Hardwares/PinAssignment.h

Committer:
hazheng
Date:
2017-02-21
Revision:
25:6f63053cee81
Parent:
15:eb6a274b3dfb
Child:
26:5814404856e2

File content as of revision 25:6f63053cee81:

#pragma once
#ifndef PIN_ASSIGNMENT_H
#define PIN_ASSIGNMENT_H

//LED Manager Class
#define PIN_LMC_LED_RED    LED_RED
#define PIN_LMC_LED_GREEN  LED_GREEN
#define PIN_LMC_LED_BLUE   LED_BLUE

//Motor Class
#define PIN_MC_DIR_L       PTD4
#define PIN_MC_DIR_R       PTA4
#define PIN_MC_SPEED_L     PTA12
#define PIN_MC_SPEED_R     PTA5

//Servo
#define PIN_SC_SERVO       PTB0

//Camera Class
#define PIN_CC_PCLOCK      PTD7
#define PIN_CC_HREF        PTD6
#define PIN_CC_VSYNC       PTA17

//OV7725RegBuf Class
#define PIN_ORB_SDA        PTC11
#define PIN_ORB_SCL        PTC10

//Wheel Encoder Class
#define PIN_WE_RL          PTD0            
#define PIN_WE_RR          PTD5

#endif