Reading Gcode in LocalFiileSystem and encodeing int array. but this program has bug.probably
Fork of MakeSequencer by
MakeSequencer.h
- Committer:
- satoyuki1111
- Date:
- 2018-10-17
- Revision:
- 4:1d7c50f17687
- Parent:
- 3:09ee560a3007
File content as of revision 4:1d7c50f17687:
#ifndef MAKESEQ_H #define MAKESEQ_H #include "mbed.h" #include "string" #define CODE_LENGTH 30 #define ARRAY_EREMENT 5 #define BUF 256 class MakeSequencer { public: MakeSequencer(FILE *fp); bool FileOpen(); void getGcode(int _row,int aSize,int* _array); int getGcodeSize(); bool ReadGcode(); private: int _data[ARRAY_EREMENT][CODE_LENGTH]; int _codesize; int _ele; char _char; int _count; LocalFileSystem *_local; FILE *_fp; }; #endif