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.
Using.h
00001 #ifndef USING_H_ 00002 #define USING_H_ 00003 00004 //Communication 00005 #define USE_MU 00006 00007 #define USE_BLUETOOTH 00008 #ifdef USE_BLUETOOTH 00009 # define BLUETOOTH_BUFFER_SIZE 64 00010 const char disconnect = 0x03; 00011 #else 00012 # define BLUETOOTH_BUFFER_SIZE 0 00013 #endif 00014 00015 #define USE_MOTOR 00016 #ifdef USE_MOTOR 00017 # define MOUNTING_MOTOR_NUM 13 00018 #else 00019 # define MOUNTING_MOTOR_NUM 0 00020 #endif 00021 00022 #define USE_RS485 00023 #ifdef USE_RS485 00024 # define RS485_BUFFER_SIZE 26 + BLUETOOTH_BUFFER_SIZE + MOUNTING_MOTOR_NUM-13 00025 # define RS485_BUFFER_LINE 8 00026 #else 00027 # define RS485_BUFFER_SIZE 0 00028 # define RS485_BUFFER_LINE 0 00029 #endif 00030 00031 #define USE_SOLENOID 00032 00033 //Communication 00034 00035 //Output 00036 #define USE_LED 00037 #define USE_LED_NUM 4 00038 #define USE_TAPELED_NUM 5 00039 //Output 00040 00041 //Input 00042 00043 #define USE_SWITCH 00044 00045 #define USE_POTENTIOMETER 00046 #ifdef USE_POTENTIOMETER 00047 # define USE_POTENTIOMETER_NUM 4 00048 #else 00049 # define USE_POTENTIOMETER_NUM 0 00050 #endif 00051 00052 #define USE_INT 00053 00054 //Input 00055 00056 #define USE_ERRORCHECK 00057 #define USE_DRIVECHECK 00058 00059 #define USE_SUBPROCESS 00060 #ifdef USE_SUBPROCESS 00061 # define USE_PROCESS_NUM 10 //0 ~ 10 00062 # define DEFAULT_PROCESS 0 00063 #endif 00064 00065 00066 #endif
Generated on Tue Jul 12 2022 18:09:59 by
