Got most stuff ported. need to do analog write with a timer