Arduino firmware and wxPython code for DCC control of trains