Minh Nguyen / Definitions

PinAssignment.h

Committer:
khaiminhvn
Date:
2021-03-17
Revision:
8:fe66db7b00ef
Parent:
2:014cf2a98712
Child:
12:44294d4d7578

File content as of revision 8:fe66db7b00ef:

#ifndef PINASSIGNMENT_H
#define PINASSIGNMENT_H

//Anemometers
#define PIN_ANEMOMETER              A0

//Accelerometers
#define PIN_ACCEL_PANEL             D1
#define PIN_ACCEL_R1                D0
#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
#endif