A good source code for stm32f4 oscilloscope, which can use 3-channel ADC to measure waveforms and display the waveforms on the screen and also display the amplitude.
Schematic PCB