![](/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
Diff: LCDShow/LCDShow.h
- Revision:
- 4:c88bf297ee75
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LCDShow/LCDShow.h Tue May 08 01:50:44 2018 +0000 @@ -0,0 +1,37 @@ +#ifndef LCDSHOW_h +#define LCDSHOW_h +#include "mbed.h" +#include "TextLCD.h" +#include <vector> +#include <string> +#include "QEI.h" + + +extern QEI Choose; +extern InterruptIn btn3; + +class LCDShow:public TextLCD +{ +public: + LCDShow(PinName rs,PinName e,PinName d4,PinName d5,PinName d6,PinName d7,LCDType type = LCD16x2); + void showdir(); + void getDir(vector<string> _dir); + void CurrPos(); + void ReadFile(); + string file_name; + bool Read_file; +private: + vector<string> File_dir; + + int PrePos; + int now_pos; + int Max_pos; + Ticker t1; + Ticker t2; + bool start; + bool Pos_fresh; + bool Neg_fresh; + bool Now_fresh; +}; + +#endif \ No newline at end of file