first publish
Dependents: CleaningMachine_Betago CleaningMachine_Betago clean_V1 CleaningM-Palm ... more
Debug.h
00001 #ifndef DEBUG_H 00002 #define DEBUG_H 00003 #include "mbed.h" 00004 #include "pinconfig.h" 00005 00006 class Debug 00007 { 00008 private: 00009 Serial debug; 00010 float scan_input_data; 00011 float scan_input_data_loop; 00012 bool change; 00013 int temp_state; 00014 bool first_time; 00015 00016 //bool mode[40]; //Dont forget to change elements : 'false' = do nothing in loop, 'true' = do something in loop 00017 //int temp_mode_data[40]; 00018 00019 public: 00020 Debug(PinName, PinName); 00021 int ScanInputData(int); //return int in case of want to check what the input data is 00022 int ScanInputDataInLoop(); //return int in case of want to check what the input data is 00023 int Mode(); 00024 00025 //Mode 00026 int SelectMode(int); 00027 int Mode1(); 00028 int Mode2(); 00029 00030 //Print 00031 void PrintListMode(); 00032 void PrintExit() { 00033 debug.printf("Exit From Debug Mode\n\n"); 00034 } 00035 void PrintAll(float num) { 00036 debug.printf("Data is %f\n",num); 00037 } 00038 00039 00040 //set 00041 void setChange() { 00042 change=false; 00043 } 00044 00045 00046 //get 00047 float getScanInputData() { 00048 return scan_input_data; 00049 } 00050 }; 00051 00052 #endif
Generated on Sun Jul 24 2022 16:24:19 by 1.7.2