|
@@ -681,50 +681,6 @@ static uint8_t *partial_right1_quick(Machine_info_t *info)
|
|
|
Paint_DrawRectangle(457, 27, 462, 41, WHITE, 1, 1);
|
|
|
#endif
|
|
|
|
|
|
-#if 0
|
|
|
- //rssi
|
|
|
- switch (Machine_info.rssi)
|
|
|
- {
|
|
|
- case 0:
|
|
|
- Paint_DrawRectangle(480-57-32,42-3,391+5,42,WHITE,1,0 );
|
|
|
- Paint_DrawRectangle(480-57-24,42-8,399+5,42,WHITE,1,0 );
|
|
|
- Paint_DrawRectangle(480-57-16,42-13,407+5,42,WHITE,1,0 );
|
|
|
- Paint_DrawRectangle(480-57-8,42-18,415+5,42,WHITE,1,0 );
|
|
|
- break;
|
|
|
- case 1 ... 24:
|
|
|
- Paint_DrawRectangle(480-57-32,42-3,391+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-24,42-8,399+5,42,WHITE,1,0 );
|
|
|
- Paint_DrawRectangle(480-57-16,42-13,407+5,42,WHITE,1,0 );
|
|
|
- Paint_DrawRectangle(480-57-8,42-18,415+5,42,WHITE,1,0 );
|
|
|
- break;
|
|
|
- case 25 ... 49:
|
|
|
- Paint_DrawRectangle(480-57-32,42-3,391+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-24,42-8,399+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-16,42-13,407+5,42,WHITE,1,0 );
|
|
|
- Paint_DrawRectangle(480-57-8,42-18,415+5,42,WHITE,1,0 );
|
|
|
- break;
|
|
|
- case 50 ... 74:
|
|
|
- Paint_DrawRectangle(480-57-32,42-3,391+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-24,42-8,399+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-16,42-13,407+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-8,42-18,415+5,42,WHITE,1,0 );
|
|
|
- break;
|
|
|
- case 75 ... 100:
|
|
|
- Paint_DrawRectangle(480-57-32,42-3,391+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-24,42-8,399+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-16,42-13,407+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-8,42-18,415+5,42,WHITE,1,1 );
|
|
|
- break;
|
|
|
- default:
|
|
|
- ESP_LOGW(LOG_TAG," err:rssi ");
|
|
|
- Paint_DrawRectangle(480-57-32,42-3,391+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-24,42-8,399+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-16,42-13,407+5,42,WHITE,1,1 );
|
|
|
- Paint_DrawRectangle(480-57-8,42-18,415+5,42,WHITE,1,1 );
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
-#else
|
|
|
|
|
|
// 添加在线离线
|
|
|
uint8_t online[6] = {0xd4, 0xda, 0xcf, 0xdf, 0x00, 0x00}; // 在线
|
|
@@ -740,11 +696,7 @@ static uint8_t *partial_right1_quick(Machine_info_t *info)
|
|
|
Paint_DrawString_CN(480 - 50 - BAT_X_OFFSET - 50 + 3, 25, (char *)outline, &chinese_type_16, FONT_BACKGROUND, FONT_FOREGROUND);
|
|
|
}
|
|
|
|
|
|
-// Paint_DrawRectangle(480-57-32,40-3,391+5,40,WHITE,1,1 );
|
|
|
-// Paint_DrawRectangle(480-57-24,40-8,399+5,40,WHITE,1,1 );
|
|
|
-// Paint_DrawRectangle(480-57-16,40-13,407+5,40,WHITE,1,1 );
|
|
|
-// Paint_DrawRectangle(480-57-8,40-18,415+5,40,WHITE,1,0 );
|
|
|
-#endif
|
|
|
+
|
|
|
|
|
|
memcpy(partial_right1_buf, Paint_info.Image, sizeof(uint8_t) * 480 * RIGHT1_HIGHT / 8);
|
|
|
return partial_right1_buf;
|