Add different serial settings, and set pin modes