![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
dsfa
Dependencies: dsf SDFileSystem TextLCD mbed stepper_moter
Fork of my_example_Nucleo_Ex05_SD_zhangyuxiang2 by
LCDShow/LCDShow.h@4:c88bf297ee75, 2018-05-08 (annotated)
- Committer:
- brainliang
- Date:
- Tue May 08 01:50:44 2018 +0000
- Revision:
- 4:c88bf297ee75
sdfa
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
brainliang | 4:c88bf297ee75 | 1 | #ifndef LCDSHOW_h |
brainliang | 4:c88bf297ee75 | 2 | #define LCDSHOW_h |
brainliang | 4:c88bf297ee75 | 3 | #include "mbed.h" |
brainliang | 4:c88bf297ee75 | 4 | #include "TextLCD.h" |
brainliang | 4:c88bf297ee75 | 5 | #include <vector> |
brainliang | 4:c88bf297ee75 | 6 | #include <string> |
brainliang | 4:c88bf297ee75 | 7 | #include "QEI.h" |
brainliang | 4:c88bf297ee75 | 8 | |
brainliang | 4:c88bf297ee75 | 9 | |
brainliang | 4:c88bf297ee75 | 10 | extern QEI Choose; |
brainliang | 4:c88bf297ee75 | 11 | extern InterruptIn btn3; |
brainliang | 4:c88bf297ee75 | 12 | |
brainliang | 4:c88bf297ee75 | 13 | class LCDShow:public TextLCD |
brainliang | 4:c88bf297ee75 | 14 | { |
brainliang | 4:c88bf297ee75 | 15 | public: |
brainliang | 4:c88bf297ee75 | 16 | LCDShow(PinName rs,PinName e,PinName d4,PinName d5,PinName d6,PinName d7,LCDType type = LCD16x2); |
brainliang | 4:c88bf297ee75 | 17 | void showdir(); |
brainliang | 4:c88bf297ee75 | 18 | void getDir(vector<string> _dir); |
brainliang | 4:c88bf297ee75 | 19 | void CurrPos(); |
brainliang | 4:c88bf297ee75 | 20 | void ReadFile(); |
brainliang | 4:c88bf297ee75 | 21 | string file_name; |
brainliang | 4:c88bf297ee75 | 22 | bool Read_file; |
brainliang | 4:c88bf297ee75 | 23 | private: |
brainliang | 4:c88bf297ee75 | 24 | vector<string> File_dir; |
brainliang | 4:c88bf297ee75 | 25 | |
brainliang | 4:c88bf297ee75 | 26 | int PrePos; |
brainliang | 4:c88bf297ee75 | 27 | int now_pos; |
brainliang | 4:c88bf297ee75 | 28 | int Max_pos; |
brainliang | 4:c88bf297ee75 | 29 | Ticker t1; |
brainliang | 4:c88bf297ee75 | 30 | Ticker t2; |
brainliang | 4:c88bf297ee75 | 31 | bool start; |
brainliang | 4:c88bf297ee75 | 32 | bool Pos_fresh; |
brainliang | 4:c88bf297ee75 | 33 | bool Neg_fresh; |
brainliang | 4:c88bf297ee75 | 34 | bool Now_fresh; |
brainliang | 4:c88bf297ee75 | 35 | }; |
brainliang | 4:c88bf297ee75 | 36 | |
brainliang | 4:c88bf297ee75 | 37 | #endif |