ATTiny85; order of magnitude loss of speed when enabling map AnalogRead function

Hello Jiggy-Ninja

First, thanks for all the great suggestions, yes we now have full control over the 'triangle waveform'.

What is the simplest code that can be used to 'superimpose' a square wave on top of only half of the triangle waveform?

I have attached a scope shot of the desired superimposed position of said squarewave.

It is the red color trace in the modified scope shot attached.

The project requires that only the rising edge be boxed by the squarewave.

I have tried various mod.s to get the squarewave to follow in sync with the triangle, but to no avail.

The only squarewave I can generate is the one in the screenshot, which spans both the rising & falling edges.

Let me know if I should start a new thread for this topic?

thanks
take care, peace
lost_bro