Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-rtos ShiftReg2 TextLCD
Interface.hpp
00001 #ifndef _INTERFACE_HPP_ 00002 #define _INTERFACE_HPP_ 00003 00004 #include "mbed.h" 00005 #include "rtos.h" 00006 #include "TextLCD.h" 00007 00008 //Libraries and header file includes 00009 00010 00011 extern Serial PC; //TX, RX 00012 extern Serial Board; //TX, RX 00013 extern TextLCD Lcd; // rs, e, d4-d7 00014 //extern DigitalOut On_board_led;//Onboard LED 00015 class INTERFACE 00016 { 00017 public://Public member functions and variables 00018 INTERFACE(PinName N1, PinName N2, PinName N3, PinName N4, PinName N5, PinName N6, PinName N7, PinName N8, PinName N9, PinName N10, PinName N11); 00019 ~INTERFACE(); 00020 void Init(); 00021 int Post(); 00022 void Serial(); 00023 void LCD(); 00024 void On_board_LED_Flash(); 00025 //Public Functions 00026 00027 //Public Variabls 00028 00029 private://Private member functions and variables 00030 //Inputs 00031 00032 //Rotary Encoder 00033 DigitalIn _Rotary_Encoder_A;//N1 00034 DigitalIn _Rotary_Encoder_B;//N2 00035 DigitalIn _Rotary_Encoder_Button;//N3 00036 00037 00038 //Buttons 00039 DigitalIn _Button_1;//N4 00040 DigitalIn _Button_2;//N5 00041 DigitalIn _Button_3;//N6 00042 00043 //MOSFET Safety Pin 00044 DigitalOut _MOSFET_Safety;//Active low N7 00045 00046 //Shift Register Control 00047 DigitalOut _Shift_SCLK;//N8 00048 DigitalOut _Shift_Latch;//N9 00049 DigitalOut _Shift_Enable;//N10 00050 DigitalOut _Shift_Data;//N11 00051 00052 00053 //Private Functions 00054 00055 //Private Variables 00056 //DigitalOut On_board_led;//Onboard LED 00057 }; 00058 #endif //_INTERFACE_HPP_
Generated on Sun Jul 17 2022 08:28:43 by
1.7.2