Skip to content

Commit 74f39f0

Browse files
LINK10LINK10
authored andcommitted
Add project files.
1 parent 4c5fbf1 commit 74f39f0

13 files changed

Lines changed: 929 additions & 0 deletions

STM32Visualization.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.7.34003.232
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "STM32Visualization", "STM32Visualization\STM32Visualization.csproj", "{D77688CD-1CCA-43D3-BAB4-A89598C14422}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{D77688CD-1CCA-43D3-BAB4-A89598C14422}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{D77688CD-1CCA-43D3-BAB4-A89598C14422}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{D77688CD-1CCA-43D3-BAB4-A89598C14422}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{D77688CD-1CCA-43D3-BAB4-A89598C14422}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {535ED3B0-77A2-4665-B196-12B49B722030}
24+
EndGlobalSection
25+
EndGlobal

STM32Visualization/App.xaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Application x:Class="STM32Visualization.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:STM32Visualization"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>

STM32Visualization/App.xaml.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace STM32Visualization
10+
{
11+
/// <summary>
12+
/// Interaction logic for App.xaml
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
}
17+
}

STM32Visualization/AssemblyInfo.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Windows;
2+
3+
[assembly: ThemeInfo(
4+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5+
//(used if a resource is not found in the page,
6+
// or application resource dictionaries)
7+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8+
//(used if a resource is not found in the page,
9+
// app, or any theme specific resource dictionaries)
10+
)]

STM32Visualization/MainWindow.xaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<Window x:Class="STM32Visualization.MainWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
Title="STM32 Visualization" Height="800" Width="600"
5+
SizeChanged="Window_SizeChanged">
6+
7+
<Grid Margin="20">
8+
<Grid.RowDefinitions>
9+
<RowDefinition Height="7*"/>
10+
<RowDefinition Height="*"/>
11+
<RowDefinition Height="2*"/>
12+
</Grid.RowDefinitions>
13+
14+
<!-- Heatmap Grid -->
15+
<Grid x:Name="heatmapGrid" Grid.Row="0" Margin="0,0,0,0" Width="{Binding ActualHeight, ElementName=heatmapGrid}">
16+
<!-- Define 8x8 rows and columns -->
17+
<Grid.Resources>
18+
<!-- This will be used for the heatmap color -->
19+
<Style TargetType="Rectangle">
20+
<Setter Property="Width" Value="Auto"/>
21+
<Setter Property="Height" Value="Auto"/>
22+
</Style>
23+
</Grid.Resources>
24+
25+
<!-- Generate rows -->
26+
<Grid.RowDefinitions>
27+
<RowDefinition Height="*"/>
28+
<RowDefinition Height="*"/>
29+
<RowDefinition Height="*"/>
30+
<RowDefinition Height="*"/>
31+
<RowDefinition Height="*"/>
32+
<RowDefinition Height="*"/>
33+
<RowDefinition Height="*"/>
34+
<RowDefinition Height="*"/>
35+
</Grid.RowDefinitions>
36+
37+
<!-- Generate columns -->
38+
<Grid.ColumnDefinitions>
39+
<ColumnDefinition Width="*"/>
40+
<ColumnDefinition Width="*"/>
41+
<ColumnDefinition Width="*"/>
42+
<ColumnDefinition Width="*"/>
43+
<ColumnDefinition Width="*"/>
44+
<ColumnDefinition Width="*"/>
45+
<ColumnDefinition Width="*"/>
46+
<ColumnDefinition Width="*"/>
47+
</Grid.ColumnDefinitions>
48+
49+
</Grid>
50+
51+
52+
<!-- Legend Canvas -->
53+
<Canvas x:Name="legendCanvas" Grid.Row="1" Margin="0,0,0,50">
54+
<!-- Color legend for heatmap goes here. Add rectangles or text as needed -->
55+
</Canvas>
56+
57+
<!-- Canvas for delta_X and delta_Y visualization -->
58+
59+
<!-- Controls for COM ports, baud rate, and start/stop button -->
60+
<StackPanel Orientation="Horizontal" Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Right">
61+
<ComboBox x:Name="comboBoxComPorts" Width="100" Margin="5"/>
62+
<ComboBox x:Name="comboBoxBaudRates" Width="100" Margin="5"/>
63+
<Button x:Name="btnStartStop" Content="Start" Width="100" Click="btnStartStop_Click" Margin="5"/>
64+
<CheckBox x:Name="toggleCheckBox" Content="Print Parsed" Checked="ToggleCheckBox_Checked" Unchecked="ToggleCheckBox_Unchecked" Margin="5"/>
65+
</StackPanel>
66+
<RichTextBox x:Name="richTextBox" Margin="140,10,0,0" Grid.Row="2" Grid.RowSpan="1">
67+
</RichTextBox>
68+
<Canvas x:Name="blobCanvas"
69+
HorizontalAlignment="Center"
70+
VerticalAlignment="Center"
71+
Height="{Binding ActualHeight, ElementName=heatmapGrid}"
72+
Width="{Binding ActualWidth, ElementName=heatmapGrid}"
73+
/>
74+
75+
76+
<Canvas Name="frameCanvas" HorizontalAlignment="Left" Height="125" VerticalAlignment="Top" Width="125" Background="White" Margin="10,14,0,0" Grid.Row="2">
77+
<Label Content="dC" HorizontalAlignment="Left" Canvas.Top="99" VerticalAlignment="Top"/>
78+
</Canvas>
79+
</Grid>
80+
</Window>

0 commit comments

Comments
 (0)