Program to output a step/ramp function with Arduino (ATmega328p)