| | |
| | | #define IsRetain ([[UIScreen mainScreen] scale] >= 2.0) |
| | | #define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height |
| | | #define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width |
| | | #define kScreenBounds [UIScreen mainScreen].bounds |
| | | |
| | | |
| | | #define ScreenMaxLength (MAX(SCREEN_WIDTH, SCREEN_HEIGHT)) |
| | | #define ScreenMinLength (MIN(SCREEN_WIDTH, SCREEN_HEIGHT)) |
| | |
| | | #define DEVICE_CONTROL_COMMAND_WATERTIME 9 // 控制每次水循环时长 |
| | | #define DEVICE_CONTROL_COMMAND_VENTILATIONTIME 10 // 控制每次换气时长 |
| | | |
| | | #define BLE_DEVICE_UUID @"0003CDD0-0000-1000-8000-00805F9B0131" |
| | | #define LISTON_DEVICE_UUID @"0003CDD1-0000-1000-8000-00805F9B0131" // 监听 |
| | | #define WRITE_DEVICE_UUID @"0003CDD2-0000-1000-8000-00805F9B0131" // 发消息 |
| | | |
| | | // < 0.25安全 |
| | | // >= 0.25 && < 0.8轻微 |
| | | // >= 0.8 && < 2中度 |
| | | // >= 2严重 |
| | | |
| | | #define FUSHE_MIN_VALUE 0 |
| | | #define FUSHE_SAFE_VALUE 250 // 安全 |
| | | #define FUSHE_SLIGHT_VALUE 800 // 轻微 |
| | | #define FUSHE_MODERATE_VALUE 2000 // 中度 |
| | | #define FUSHE_MAX_VALUE 4000 // 警告 |
| | | |