Requirement of more than 13 PWM outputs : arduino MEGA

Hello !

I am doing a project where I use a touchsreen to control a motor.
My problem is that the touchscreen uses all the PWM outputs of my arduino mega and I need another one to control my motor with the L298N H-bridge.
Is there a way to add another PWM output ? Or to connect two arduino together ?

Thank you !

Or to connect two Arduino together ?

Bad approach to a problem.

Precisely what you are doing I have no idea, but if you want lots of PWM, use these:

And before someone jumps in and starts confusing the matter, this device is not by any means whatsoever, restricted to controlling servos. :astonished: