Added waveform GPIO. TODO: Make a class to handle timer interrupt