1. Using ESP32/8051 platform, design and demonstrate a function generator system equipped
with four buttons/touch/tap pins to control the system in real-time as follows.
1. Button 1 would facilitate to switch between different type of waveform at certain
frequency: Square, Sinusoid, Sawtooth, Triangular.
2. Button 2 would facilitate to scale the amplitude of the displayed waveform [0.5x,1x,2x]
3. Button 3 would scale the frequency of the chosen waveform [0.5x,1x,2x].
4. Button 4 would facilitate to scale DAC resolution of the chosen waveform [3 bit,5 bit,8
bit]
Provide the esp32 Arduino ide code for the same.