TeensyDuino 1.16 has just been released and one of its new features is:


I haven't tried it yet but it looks like it'll do what you want.

Pete