diff --git a/ESP32_Oscilloscope/screen.ino b/ESP32_Oscilloscope/screen.ino index 6148a0e..51561df 100644 --- a/ESP32_Oscilloscope/screen.ino +++ b/ESP32_Oscilloscope/screen.ino @@ -196,7 +196,7 @@ void draw_sprite(float freq, spr.drawString(frequency, shift + 5, 15); //String offset_line = String((2.0 * v_div) / 1000.0 - offset) + "V"; String offset_line = String((3.0 * v_div) / 1000.0 - offset) + "V"; - spr.drawString(offset_line, shift + 25, 59); + spr.drawString(offset_line, shift + 25, (DISPLAY_HEIGHT/2)-8); if (set_value) { uint16_t t_left = shift+161; @@ -221,7 +221,7 @@ void draw_sprite(float freq, spr.drawString(String(int(s_div)) + "uS/div", shift - 100, 15); //String offset_line = String((2.0 * v_div) / 1000.0 - offset) + "V"; String offset_line = String((3.0 * v_div) / 1000.0 - offset) + "V"; - spr.drawString(offset_line, shift + 75, (DISPLAY_HEIGHT/2) -8); + spr.drawString(offset_line, shift + 75, (DISPLAY_HEIGHT/2)-8); }