Create functions.ino

Common functions