A shoddy attempt at solving the gradient. It doesn't work, but maybe the logic could inspire you to write something useful

Dependencies:   m3pi_ng mbed

Revision graph

The revision graph only works with JavaScript-enabled browsers.