|
|
@@ -87,6 +87,13 @@ void menuFocus(void)
|
|
|
// -------------------------------------------------------------------------- //
|
|
|
// Отрисовка
|
|
|
|
|
|
+// Заставка
|
|
|
+void draw_screensaver(void)
|
|
|
+{
|
|
|
+ Paint_DrawString_EN(25, 52, "TUBOT", &Font24, 0xf, 0x0);
|
|
|
+ oled_display();
|
|
|
+}
|
|
|
+
|
|
|
// Главное меню. Отрисовка.
|
|
|
void draw_main(uint8_t sel)
|
|
|
{
|
|
|
@@ -185,20 +192,28 @@ static void screen_draw_main(uint8_t sel)
|
|
|
oled_clear(BLACK);
|
|
|
|
|
|
// Скругленная рамка и логотип
|
|
|
- //GFX_DrawRoundRectangle(0, 0, 127, 127, 5, 15);
|
|
|
+#if 0
|
|
|
+ GFX_DrawRoundRectangle(0, 0, 127, 127, 5, 15);
|
|
|
Paint_DrawString_EN(50, 120, "Fly Electronics", &Font8, 0xf, 0x0);
|
|
|
+#endif
|
|
|
|
|
|
// Total
|
|
|
//memset(screen_str_buf, 0, SCREEN_BUF_LEN);
|
|
|
//oled_float_right_aligment(distance, 7, screen_str_buf);
|
|
|
- Paint_DrawString_EN(1, 36, "Distance (m):", &Font12, 0xf, 0x0);
|
|
|
+ Paint_DrawString_EN(1, 30, "Distance (m):", &Font12, 0xf, 0x0);
|
|
|
|
|
|
+ memset(screen_str_buf, 0, SCREEN_BUF_LEN);
|
|
|
+ GFX_SetFont(font_8x5);
|
|
|
+ GFX_SetFontSize(4);
|
|
|
+ oled_float_symbol_formated(distance, screen_str_buf);
|
|
|
+ GFX_DrawString(4, 64, screen_str_buf, 15, 0);
|
|
|
+
|
|
|
+
|
|
|
+#if 0
|
|
|
memset(screen_str_buf, 0, SCREEN_BUF_LEN);
|
|
|
oled_float_right_aligment(distance, 7, screen_str_buf);
|
|
|
Paint_DrawString_EN(4, 52, screen_str_buf, &Font24, 0xf, 0x0);
|
|
|
-
|
|
|
- // void GFX_Image(int x, int y, const uint8_t *img, uint8_t w, uint8_t h)
|
|
|
- GFX_Image(0, 0, (const uint8_t *)pict_gear[0], 32, 32);
|
|
|
+#endif
|
|
|
|
|
|
#if 0
|
|
|
// Основнаая рамка
|