Added the pin outs

Dependencies:   mbed mbed-rtos ShiftReg TextLCD

Committer:
thomasmorris
Date:
Mon May 06 22:13:28 2019 +0000
Revision:
7:d0159f675b30
Parent:
6:347c1f441b94
Added the pinouts

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 3:3700f0c29710 1 #ifndef _INTERFACE_HPP_
thomasmorris 3:3700f0c29710 2 #define _INTERFACE_HPP_
thomasmorris 3:3700f0c29710 3
thomasmorris 3:3700f0c29710 4 #include "mbed.h"
thomasmorris 3:3700f0c29710 5 #include "rtos.h"
thomasmorris 3:3700f0c29710 6 #include "TextLCD.h"
thomasmorris 3:3700f0c29710 7
thomasmorris 3:3700f0c29710 8 //Libraries and header file includes
thomasmorris 3:3700f0c29710 9
thomasmorris 3:3700f0c29710 10
thomasmorris 3:3700f0c29710 11 extern Serial PC; //TX, RX
thomasmorris 7:d0159f675b30 12 extern Serial Board; //TX, RX
thomasmorris 4:1ef122d47bf3 13 extern TextLCD Lcd; // rs, e, d4-d7
thomasmorris 6:347c1f441b94 14 //extern DigitalOut On_board_led;//Onboard LED
thomasmorris 3:3700f0c29710 15 class INTERFACE
thomasmorris 3:3700f0c29710 16 {
thomasmorris 3:3700f0c29710 17 public://Public member functions and variables
thomasmorris 7:d0159f675b30 18 INTERFACE(PinName N1, PinName N2, PinName N3, PinName N4, PinName N5, PinName N6, PinName N7, PinName N8, PinName N9, PinName N10, PinName N11);
thomasmorris 3:3700f0c29710 19 ~INTERFACE();
thomasmorris 3:3700f0c29710 20 void Init();
thomasmorris 3:3700f0c29710 21 int Post();
thomasmorris 3:3700f0c29710 22 void Serial();
thomasmorris 4:1ef122d47bf3 23 void LCD();
thomasmorris 6:347c1f441b94 24 void On_board_LED_Flash();
thomasmorris 3:3700f0c29710 25 //Public Functions
thomasmorris 3:3700f0c29710 26
thomasmorris 3:3700f0c29710 27 //Public Variabls
thomasmorris 3:3700f0c29710 28
thomasmorris 3:3700f0c29710 29 private://Private member functions and variables
thomasmorris 7:d0159f675b30 30 //Inputs
thomasmorris 7:d0159f675b30 31
thomasmorris 7:d0159f675b30 32 //Rotary Encoder
thomasmorris 7:d0159f675b30 33 DigitalIn _Rotary_Encoder_A;//N1
thomasmorris 7:d0159f675b30 34 DigitalIn _Rotary_Encoder_B;//N2
thomasmorris 7:d0159f675b30 35 DigitalIn _Rotary_Encoder_Button;//N3
thomasmorris 7:d0159f675b30 36
thomasmorris 7:d0159f675b30 37
thomasmorris 7:d0159f675b30 38 //Buttons
thomasmorris 7:d0159f675b30 39 DigitalIn _Button_1;//N4
thomasmorris 7:d0159f675b30 40 DigitalIn _Button_2;//N5
thomasmorris 7:d0159f675b30 41 DigitalIn _Button_3;//N6
thomasmorris 7:d0159f675b30 42
thomasmorris 7:d0159f675b30 43 //MOSFET Safety Pin
thomasmorris 7:d0159f675b30 44 DigitalOut _MOSFET_Safety;//Active low N7
thomasmorris 7:d0159f675b30 45
thomasmorris 7:d0159f675b30 46 //Shift Register Control
thomasmorris 7:d0159f675b30 47 DigitalOut _Shift_SCLK;//N8
thomasmorris 7:d0159f675b30 48 DigitalOut _Shift_Latch;//N9
thomasmorris 7:d0159f675b30 49 DigitalOut _Shift_Enable;//N10
thomasmorris 7:d0159f675b30 50 DigitalOut _Shift_Data;//N11
thomasmorris 7:d0159f675b30 51
thomasmorris 3:3700f0c29710 52
thomasmorris 3:3700f0c29710 53 //Private Functions
thomasmorris 3:3700f0c29710 54
thomasmorris 3:3700f0c29710 55 //Private Variables
thomasmorris 6:347c1f441b94 56 //DigitalOut On_board_led;//Onboard LED
thomasmorris 3:3700f0c29710 57 };
thomasmorris 3:3700f0c29710 58 #endif //_INTERFACE_HPP_