Eimantas Bernotavicius / Mbed 2 deprecated Buggy_Project

Dependencies:   QEI mbed

pins.cpp

Committer:
Weranest
Date:
2018-02-15
Revision:
1:12f18cede014
Parent:
0:62e51b80d738
Child:
3:c9df852ad9ac

File content as of revision 1:12f18cede014:

//This file is strictly to define pins for buggy operations. Thats it. But thought it would be easier to overseer them like this
#include "mbed.h"
#include "C12832.h"
#include "pins.h"
//Encoder pins (created as a QEI object, so just defined naming for pins)
//=======================
#define channelARight PA_1
#define channelBRight 
#define channelIRight 
#define channelALeft 
#define channelBLeft 
#define channelILeft 
//Motor control pins
//=======================
PwmOut motorRight(PB_6);
PwmOut motorLeft(PB_7);
DigitalOut motorDirRight(PB_4);
DigitalOut motorDirLeft(PB_5);
DigitalOut motorModeRight(PB_2);
DigitalOut motorModeLeft(PB_3);
DigitalOut driveBoard (PB_1);
//Line sensor pins
//=======================
//Magnet sensor pins
//=======================