You are correct, It must ramp up as a sawtooth type wave form and then ramp down.
You're still being too ambiguous. Sawtooth waves do not ramp down, they have a hard edge. I know how to use an oscilloscope, so you don't need to post the same screenshots every time.
To avoid further confusion, give me a ONE word answer: Based on the picture I already posted above, do you want the wave to be a sawtooth or triangle? Don't tell me the shape it is making, tell me what you want it to make.
I can't help you further until I get a clear answer to that.
Yes, I was able to control the height on a previous version of the code. I have probably 30 versions now saved in the IDE. It is NOT working in this version. In the version it worked in , I was substituting an 'int variable' and not using map AnalogRead function.
FSM only knows how many things have been revised between that unspecified previous working version and this current one, I guess. One at a time I guess.