Reverse engineered prompt

Build me a Python tool for Upside Down Labs BioAmp hardware that lets me connect to a board running the Chords Arduino firmware and use it from a simple local web interface.

I want to be able to connect over WiFi, Bluetooth, or USB serial, see all incoming channels live, start and stop recording, and save the raw data to CSV with a timestamp and counter. It should also be able to start an LSL stream so other tools on the same network can read the data. From the interface, I’d like to launch the existing signal views and mini apps like raw GUI, EEG with FFT, ECG with heart rate, EMG envelope, EOG with blink markers, CSV plotting, and the simple EEG and EOG games or utilities.

Please make the connection flow feel obvious, with clear connect and disconnect states and basic error messages if the device is missing or recording fails. Keep it easy to run locally from one command. If you need details, look up the current Chords Arduino firmware docs online.

Want more depth? Deep Reverse