How tom change generator frequency

switches are working, k2 is changing when buttons are inside void loop.