Added channel selection to analogWrite function