Circuit-Digest / ESP32-Oscilloscope

Create your own affordable ESP32-based oscilloscope with 1Msps sampling rate using this DIY project. Features include a 1.69” TFT display, tactile switches, and essential components. Find the circuit diagram, PCB layout, and Arduino code on GitHub for an accessible and compact solution
https://circuitdigest.com/microcontroller-projects/diy-esp32-oscilloscope
47 stars 22 forks source link

To display the center line correctly. #2

Open hazy1710 opened 2 years ago

hazy1710 commented 2 years ago

Change:

181   String offset_line = String((2.0 * v_div) / 1000.0 - offset) + "V";
203   String offset_line = String((2.0 * v_div) / 1000.0 - offset) + "V";

to:

181   String offset_line = String((3.0 * v_div) / 1000.0 - offset) + "V";
203   String offset_line = String((3.0 * v_div) / 1000.0 - offset) + "V";

to display the center line correctly.