This solution contains two implementations of a Spectrum Visualizer application and one test project:
-
SpectrumVisualizer (Old Project)
- Uses a vendor-specific library for device communication.
-
SpectrumVisualizer.Uart (New Project)
- Replaces the vendor-specific library with a custom UART implementation using
System.IO.Ports.
- Replaces the vendor-specific library with a custom UART implementation using
-
SpectrumVisualizer.Tests
- Contains MSTest-based unit tests for both implementations (where applicable).
- Focuses primarily on testing the new UART-based logic in
SpectrumVisualizer.Uart.
-
Clone and Open the Solution
- Clone this repository and open it in Visual Studio or another .NET-compatible IDE.
-
Build and Run
- Each project can be built independently.
SpectrumVisualizer(old) relies on the vendor library (if still present).SpectrumVisualizer.Uart(new) usesSystem.IO.Portsfor UART communication.- For single file package use
dotnet publish -r win-x64 -c Release --self-contained true /p:PublishSingleFile=true
-
Testing
- Open the Test Explorer in Visual Studio.
- Build and run the tests from the
SpectrumVisualizer.Testsproject. - Tests cover parsing, data acquisition, and inversion logic for the new UART implementation.