A queue-based implementation of a schedule for an Atmega328P.  Resolution is in milliseconds.  Uses a considerable amount of Data Memory.