Minh Nguyen / Definitions

PinAssignment.h

Committer:
khaiminhvn
Date:
2021-04-04
Revision:
22:edac0101124d
Parent:
13:ae228d1889da

File content as of revision 22:edac0101124d:

#ifndef PINASSIGNMENT_H
#define PINASSIGNMENT_H

//Anemometers
#define PIN_ANEMOMETER              A0

//Accelerometers
#define PIN_ACCEL_PANEL             D11
#define PIN_ACCEL_R1                D10
#define PIN_ACCEL_R2                D2

//Buttons
#define PIN_BTFN                    D4          //FN Button
#define PIN_BTINC                   D3          //INC Button
#define PIN_BTDEC                   D5          //DEC Button

//Motor Driver
#define PIN_ENA                     D6
#define PIN_ENB                     D7
#define PIN_INTP                    D8          //Tie INT1 and INT3
#define PIN_INTN                    D9          //Tie INT2 and INT4

//I2C
#define PIN_SDA                     PTE25
#define PIN_SCL                     PTE24

//Temperature control
#define PIN_FAN                     A5
#define PIN_LM35                    A2          //Temperature Sensor

//Power Sensing
#define PIN_V                       A3          //Voltage sensing
#define PIN_I                       A4          //Current sensing
#endif